Slots
- borderSource
-
const Bool border := true
Draw a border around the widget. Default is true. This field cannot be changed once the widget is constructed.
- colAtSource
-
Get the zero based column index at the specified coordinate relative to this widget or null if not over a valid cell.
- hbarSource
-
readonly ScrollBar hbar
Horizontal scroll bar.
- headerVisibleSource
-
native Bool headerVisible
Is the header visible.. Defaults to true.
- makeSource
-
new make(|Table|? f := null)
Default constructor.
- modelSource
-
TableModel? model
Backing data model of table.
- multiSource
-
const Bool multi := false
True to enable multi-row selection, false for single row selection. Default is false. This field cannot be changed once the widget is constructed.
- onActionSource
-
@transient
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
-
@transient
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.popup
field 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, ornull
if this is a background popup.Event.pos
: the mouse position of the popup.
- onSelectSource
-
@transient
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.
- rowAtSource
-
Get the zero based row index at the specified coordinate relative to this widget or null if not over a valid cell.
- selectedSource
-
native Int[] selected
Get and set the selected row indices.
- vbarSource
-
readonly ScrollBar vbar
Vertical scroll bar.