FxOperationMenuItem

Type: React component

How to get FxOperationMenuItem?

JavaScript

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

A menu item that invokes and reflects the state of an operation.

Props

  1. focusEditorWhenDone

    (Optional)

    Type: FocusEditorWhenDone

    Default value

  2. hoverHighlightType

    (Optional)

    Type: HoverHighlightType

    The contextNodeId must also be set on the operationData.

    Default value

  3. icon

    (Optional)

    Type: Icon

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

    Default value

  4. isDisabled

    (Optional)

    Type: IsDisabled

    Default value

  5. isSelected

    (Optional)

    Type: IsSelected

    Default value

  6. label

    (Optional)

    Type: String

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

    Default value

  7. onClick

    (Optional)

    Type: OnClickCallback

    Default value

  8. operationName

    (Required)

    The operation name.

  9. operationData

    (Optional)

    The operation data to evaluate the operation with.

    Set the contextNodeId on the operation data for the hover highlighting(hoverHighlightType).

    Default value

  10. tooltipContent

    (Optional)

    Type: TooltipContent

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

    Default value