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
Methods
getToolbarButtons
(
Array
-
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:
Array:
An Array which contains the buttons that should be rendered.