FxOperationCompactButton

Type: React component

How to get FxOperationCompactButton?

JavaScript

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

A button that invokes and reflects the state of an operation.

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).

    Default value

  3. iconAfter

    (Optional)

    Type: Icon

    The icon that is displayed after the label.

    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 button. 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.

    Default value

  10. tooltipContent

    (Optional)

    Type: TooltipContent

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

    Default value

  11. type

    (Required)

    Default value