Show:

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.

Methods

getToolbarButtonGroups

(
  • buttons
  • additionalProps
)
Array

Analayses the current selection and returns the buttons or button groups to be rendered.

Parameters:

  • buttons Array

    The buttons could be shown, prior to the state filtering.

  • additionalProps Object

    Additional props that should be passed down to the buttons.

Returns:

Array:

An Array which contains the buttons or button groups that should be rendered.

getToolbarButtons

(
  • buttons
  • additionalProps
)
Array

Analyzes the current selection and the buttons exclusive mode value to figure out which buttons should be present in a given state.

Parameters:

  • buttons Array

    The buttons could be shown, prior to the state filtering.

  • additionalProps Object

    Additional props that should be passed down to the buttons.

Returns:

Array:

An Array which contains the buttons that should be rendered.