Show:

The ButtonTableHeading class provides functionality to work with table heading.

Methods

_getCommands

() Array

Returns a list of commands. If a list of commands was passed as property commands, it will take a precedence over the default ones.

Returns:

Array:

The list of available commands.

render

() Object

Lifecycle. Renders the UI of the button.

Returns:

Object:

The content which should be rendered.

Properties

commands

Array

List of the commands the button is able to handle.

editor

Object

The editor instance where the component is being used.

expanded

Boolean

Indicates whether the styles list is expanded or not.

key

String static

The name which will be used as an alias of the button in the configuration.

Default: tableRow

label

String

The label that should be used for accessibility purposes.

tabIndex

Number

The tabIndex of the button in its toolbar current state. A value other than -1 means that the button has focus and is the active element.

toggleDropdown

Function

Callback provided by the button host to notify when the styles list has been expanded.