StandardTableView
The StandardTableView
represents a table of data with columns and rows. Cells
are organized in a model where each row is a model of
struct StandardListViewItem default: a struct with all default values
StandardListViewItem
Represents an item in a StandardListView and a StandardTableView.
text
(string): The text content of the item
Properties
Same as ListView, and in addition:
current-sort-column
int (out)
default: 0
Indicates the sorted column. -1 mean no column is sorted.
columns
[struct] (in-out)
default: a struct with all default values
TableColumn
This is used to define the column and the column header of a TableView
title
(string): The title of the column headermin_width
(length): The minimum column width (logical length)horizontal_stretch
(float): The horizontal column stretchsort_order
(SortOrder): Sorts the columnwidth
(length): the actual width of the column (logical length)
Defines the model of the table columns.
rows
[[struct]] (in-out)
default: a struct with all default values
StandardListViewItem
Represents an item in a StandardListView and a StandardTableView.
text
(string): The text content of the item
Defines the model of table rows.
current-row
int (in-out)
default: 0
The index of the currently active row. -1 mean none is selected, which is the default.
Callbacks
sort-ascending(int)
Emitted if the model should be sorted by the given column in ascending order.
sort-descending(int)
Emitted if the model should be sorted by the given column in descending order.
row-pointer-event(int, PointerEvent, Point)
Emitted on any mouse pointer event similar to TouchArea
. Arguments are row index associated with the event, the PointerEvent
itself and the mouse position within the tableview.
current-row-changed(int)
Emitted when the current row has changed because the user modified it
Functions
set-current-row(int)
Sets the current row by index and brings it into view.
© 2024 SixtyFPS GmbH