ToolbarButtons Class
ToolbarButtons is a mixin which provides a list of buttons which have to be displayed on the current toolbar depending on user preferences and given state.
Index
Methods
getToolbarButtonGroups
-
buttons
-
additionalProps
Analayses the current selection and returns the buttons or button groups to be rendered.
Parameters:
-
buttons
ArrayThe buttons could be shown, prior to the state filtering.
-
additionalProps
ObjectAdditional props that should be passed down to the buttons.
Returns:
An Array which contains the buttons or button groups that should be rendered.
getToolbarButtons
-
buttons
-
additionalProps
Analyzes the current selection and the buttons exclusive mode value to figure out which buttons should be present in a given state.
Parameters:
-
buttons
ArrayThe buttons could be shown, prior to the state filtering.
-
additionalProps
ObjectAdditional props that should be passed down to the buttons.
Returns:
An Array which contains the buttons that should be rendered.