src/modules/action-bar/components/action.intf.ts
Stark Action Base interface
Properties |
|
buttonColor |
buttonColor:
|
Type : StarkActionBarButtonColor | string
|
Optional |
Color of the button |
className |
className:
|
Type : string
|
Optional |
Custom CSS class to be set to the action button |
icon |
icon:
|
Type : string
|
Optional |
Path to SVG icon from iconSets to display inside the action button. Ex: "pencil" |
iconActivated |
iconActivated:
|
Type : string
|
Optional |
The second icon if this action has two possible states: activated and deactivated |
iconSwitchFunction |
iconSwitchFunction:
|
Type : function
|
Optional |
In case of two icon states, this function will hide one of them or show another |
isEnabled |
isEnabled:
|
Type : boolean
|
Optional |
Whether the action button should be enabled for user interaction or not |
label |
label:
|
Type : string
|
Optional |
Text to be displayed as label of the action button |
labelActivated |
labelActivated:
|
Type : string
|
Optional |
The second label if this action has two possible states: activated and deactivated |
labelSwitchFunction |
labelSwitchFunction:
|
Type : function
|
Optional |
In case of two label states, this function will hide one of them or show another |