FxOperationInsertTableMenu

How to get FxOperationInsertTableMenu

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

Type: Component

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

# Name Type Description
1. [focusEditorWhenDone] 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
null
2. [isDisabled] 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
false
3. [maximumNumberOfColumns] Number

The maximum numbers of columns the grid can grow to.


  Default value
8
4. [maximumNumberOfRows] Number

The maximum numbers of rows the grid can grow to.


  Default value
8
5. [minimumNumberOfColumns] Number

The minium numbers of columns the grid can shrink to.


  Default value
5
6. [minimumNumberOfRows] Number

The minium numbers of rows the grid can shrink to.


  Default value
5
7. [onClick] 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.

8. [operationData] Object

Additional operation data, which will be added to the stepData of the operation.

  Default value
{}
9. operationName String

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

The name by with the operation was registered. The component will be replaced with a CompactStateMessage if the operation is not found.

Was this page helpful?