FxMultiOperationsMenuItem

Type: React component

How to get FxMultiOperationsMenuItem?

JavaScript

import FxMultiOperationsMenuItem from 'fontoxml-fx/src/FxMultiOperationsMenuItem.jsx'

Renders a menu item that invokes and reflects the state of an operation. The first enabled or else the first operation in the operations array, is used in the menu item. This is updated every time the state of one of the operations changes.

Props

  1. focusEditorWhenDone

    (Optional)

    Type: FocusEditorWhenDone

    Default value

  2. icon

    (Optional)

    Type: Icon

    The icon that is displayed before the label. This overrides the icon provided by the operation (operation.icon) and provided by the operations array.

    Default value

  3. isDisabled

    (Optional)

    Type: IsDisabled

    Default value

  4. isSelected

    (Optional)

    Type: IsSelected

    Default value

  5. label

    (Optional)

    Type: String

    The label of the menu item. This overrides the label provided by the operation (operation.label) and provided by the operations array.

    Default value

  6. onClick

    (Optional)

    Type: OnClickCallback

    Default value

  7. operations

    (Required)

    Type: Array<OperationSpec>

    The first enabled or else the first operation in the list, is used in the menu item.

  8. tooltipContent

    (Optional)

    Type: TooltipContent

    The tooltip for the menu item. This overrides the tooltipContent provided by the operation (operation.description) and provided by the operations array.

    Default value

  9. hoverHighlightType

    (Required)

    Default value