The data table interface.

Hierarchy

Properties

Classes: string[]

Additional CSS classes to add to the control.

ColumnHeaders: string[]

The column headers of the data table.

ContextMenu: string[]

The context menu items to support. Must be an array of the following:

  • row_above
  • row_below
  • remove_row
  • col_left
  • col_right
  • remove_col
  • undo
  • redo
Data: (string | number)[][]

The data as an array of arrays. Each inner array represents a row of data.

Enabled: boolean

Enabled state of the UI element. When the type supports this, the UI element will be disabled when set to false.

HasColumnHeaders: boolean

Flag indicating that the data table has column headers.

HasRowHeaders: boolean

Flag indicating that the data table has row headers.

Id: string

The id of the UI element.

Name: string

Name of the UI element. For form fields that would be the name otherwise used for reference only.

OnChange: ((dataTable) => void)

Type declaration

    • (dataTable): void
    • Registers a callback for the change event.

      Parameters

      Returns void

ParentClasses: string[]

Additional CSS classes to add to the parent control when supported.

Size?: MEUISize

The size of the UI element.

StandardClasses: string[]

The standard classes of the control. Modify this property only if you know what you are doing.

Tags: string[]

Tags for the UI element. Used for reference only.

TextDirection: TextFieldTextDirection

The text direction of the UI element. Defaults to Inherit, meaning it will use the editor default.

ToolTip?: string

Tooltip text of the UI element.

Type: "DataTable"

The type of the UI element. Always "DataTable".

Visible: boolean

Visibility flag of the UI element. When not visible it will be hidden from the UI.

Generated using TypeDoc