FxOperationInsertTableMenu

Type: React component

How to get FxOperationInsertTableMenu?

JavaScript

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

Renders a menu with a grid in which the size of the table to be inserted can be determined. Place this inside the Drop component instead of the Menu component.

The grid will grow and shrink depending on where the cursor is and on what the maximum and minium number of rows and columns are.

Props

  1. focusEditorWhenDone

    (Optional)

    Type: Boolean

    Whether or not the given component should tell the editor (content view) to take back focus after its operation is done executing. By default this is has a value of null and is then determined at render time: its true if the component is placed inside the masthead or statusbar (including when used in drops or popovers triggered from the masthead or statusbar) and false otherwise.

    Setting this prop to a value other than null or undefined forces that value for all renders, regardless of where the component is rendered.

    Default value

  2. isDisabled

    (Optional)

    Type: Boolean

    Set to true to render this component in a disabled state.

    Setting it to false does not (re)enable it if the associated operation(s) are not enabled. This prevents users from executing operations that would cause errors or even break the document.

    Default value

  3. maximumNumberOfColumns

    (Optional)

    Type: Number

    The maximum numbers of columns the grid can grow to.

    Default value

  4. maximumNumberOfRows

    (Optional)

    Type: Number

    The maximum numbers of rows the grid can grow to.

    Default value

  5. minimumNumberOfColumns

    (Optional)

    Type: Number

    The minium numbers of columns the grid can shrink to.

    Default value

  6. minimumNumberOfRows

    (Optional)

    Type: Number

    The minium numbers of rows the grid can shrink to.

    Default value

  7. onClick

    (Optional)

    Type: Function

    Add additional onClick callback. The callback is called when the user clicks on the component and at the same time the operation is executed.

    Default value

  8. operationData

    (Optional)

    Type: FX~OperationData

    Default value

  9. operationName

    (Required)

    Type: FX~OperationName

    The operation that will insert the table, given the Object{ columm: number, row: number } will be added to the operation data.