StandardTableView
The StandardTableView represents a table of data with columns and rows. The
columns are defined by the columns property, and each row is a model of
StandardListViewItem set via the rows property.
import { StandardTableView } from "std-widgets.slint";export component Example inherits Window { width: 230px; height: 200px;
StandardTableView { width: 230px; height: 200px; columns: [ { title: "Header 1" }, { title: "Header 2" }, ]; rows: [ [ { text: "Item 1" }, { text: "Item 2" }, ], [ { text: "Item 1" }, { text: "Item 2" }, ], [ { text: "Item 1" }, { text: "Item 2" }, ] ]; }}
Properties
Section titled “Properties”Same scroll properties as ScrollView, and in addition:
current-sort-column
Section titled “current-sort-column”int(out)
Indicates the sorted column, or -1 when no column is sorted.
columns
Section titled “columns”[struct](in-out)default: []
Defines the model of the table columns.
StandardTableView { columns: [{ title: "Header 1" }, { title: "Header 2" }]; rows: [[{ text: "Item 1" }, { text: "Item 2" }]];}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)
[[struct]](in-out)default: []
Defines the model of table rows.
StandardTableView { columns: [{ title: "Header 1" }, { title: "Header 2" }]; rows: [[{ text: "Item 1" }, { text: "Item 2" }]];}StandardListViewItem
Represents an item in a StandardListView and a StandardTableView.
text(string): The text content of the item
current-row
Section titled “current-row”int(in-out)default: -1
The index of the currently active row. -1 mean none is selected, which is the default.
Callbacks
Section titled “Callbacks”sort-ascending(int)
Section titled “sort-ascending(int)”Emitted if the model should be sorted by the given column in ascending order.
sort-descending(int)
Section titled “sort-descending(int)”Emitted if the model should be sorted by the given column in descending order.
row-pointer-event(int, PointerEvent, Point)
Section titled “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)
Section titled “current-row-changed(int)”Emitted when the current row has changed because the user modified it
StandardTableView { columns: [{ title: "Header 1" }, { title: "Header 2" }]; rows: [[{ text: "Item 1" }, { text: "Item 2" }]];
current-row-changed(index) => { debug("Current row: ", index); }}Functions
Section titled “Functions”set-current-row(int)
Section titled “set-current-row(int)”Sets the current row by index and brings it into view.
© 2026 SixtyFPS GmbH