Table displays grid of rows and columns.
Slots
- borderSource
-
const Bool border := trueDraw a border around the widget. Default is true. This field cannot be changed once the widget is constructed.
- headerVisibleSource
-
native Bool headerVisibleIs the header visible.. Defaults to true.
- modelSource
-
TableModel modelBacking data model of table.
- multiSource
-
const Bool multi := falseTrue to enable multi-row selection, false for single row selection. Default is false. This field cannot be changed once the widget is constructed.
- onActionSource
-
readonly EventListeners onAction := EventListeners()Callback when row is double clicked or Return/Enter key is pressed.
Event id fired:
Event fields:
Event.index: the row index.
- onPopupSource
-
readonly EventListeners onPopup := EventListeners()Callback when user invokes a right click popup action. If the callback wishes to display a popup, then set the
Event.popupfield with menu to open. If multiple callbacks are installed, the first one to return a nonnull popup consumes the event.Event id fired:
Event fields:
Event.index: the row index, ornullif this is a background popup.
- onSelectSource
-
readonly EventListeners onSelect := EventListeners()Callback when selected rows change.
Event id fired:
Event fields:
Event.index: the primary selection row index.
- refreshAllSource
-
native Void refreshAll()Update the entire table's contents from the model.
- selectedSource
-
native Int[] selectedGet and set the selected row indices.