Class

CustomButtonGroup

CustomButtonGroup(props) → {React.ReactElement}

Overview

Split button with a dropdown that can change the button action. For full documentation check out Material-UI docs on Button and ButtonGroup.
The idea for the composition was taken from this tutorial with some changes.
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 true to get unblurred tooltip text in Google Chrome.

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.

View Source Utils/Inputs/CustomButtonGroup.js, line 84

React.ReactElement