FxSaveButton

Type: React component

How to get FxSaveButton?

JavaScript

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

A button representing the saving and save error states of the documents currently loaded in the editor. When clicking the button, the editor will trigger a save of the dirty documents.

If an error is present in one of the documents, the button triggers a dropdown showing a menu of errored documents. When clicking a document in this menu, it scrolls the corresponding document into view.

Props

  1. isDisabled

    (Optional)

    Type: Boolean

    Whether or not the component should be rendered in a disabled state.

  2. tooltipContent

    (Optional)

    Type: String | ReactElement

    The content of the tooltip that is displayed when hovering over the whole component.

    • string: the textual content of the tooltip

    • ReactElement: a React Element (instance of a React Component, usually created with JSX)