Constructor
# new CustomButtonGroup(props) → {React.ReactElement}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
props |
Object | |||
children |
Array.<React.ReactNode> | The content of the component, especially the array of buttons. |
||
disableGpu |
boolean |
<optional> |
true | Set to |
options |
Array.<string> | The array of actions to choose from. |
||
selected |
number | The index of a selected action from the options array. |
||
onActionSelected |
function |
<optional> |
The callback fired when an action is selected. |
|
tooltips |
Array.<string> | string | The array of tooltips for buttons or one tooltip for all of them. |
||
WrapperProps |
Object |
<optional> |
Props applied to the Wrapper element. |
React.ReactElement