FxButtonWithValueFromModal

Type: React component

How to get FxButtonWithValueFromModal?

JavaScript

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

This component wraps the ButtonWithValue component to allow the button to obtain its value from a modal. For use in Form components.

Props

  1. buttonLabel

    (Optional)

    Type: String

    The label of the button.

    Default value

  2. icon

    (Optional)

    Type: Icon

    An icon located in front of the button label.

    Default value

  3. iconAfter

    (Optional)

    Type: Icon

    An icon located after the button label.

    Default value

  4. isDisabled

    (Optional)

    Type: Boolean

    Default value

  5. ModalComponent

    (Required)

    Type: React component

    The modal to open on button click. See Create a modal for a guide on how to make a modal.

  6. onChange

    (Required)

    Type: Function

    Returns

  7. tooltipContent

    (Optional)

    Type: String

    The tooltip for the button.

    Default value

  8. value

    (Optional)

    Type: Any

    The value set for this component.

    Default value