public class TableView extends Widget:
Spreadsheet-like table widget backed by a TableModel.
model = TableModel("users").addColumn("id").addColumn("login")
model.addRow(["1", "admin"])
table = TableView(model)
table.cellSelected += lambda(event: TableCellEvent): print(table.selectedValue)| Modifier and Type | Member | Description |
|---|---|---|
| public event | cellSelectedcellSelected as TableCellEvent |
Emitted when the current cell changes by mouse or keyboard. |
| Modifier and Type | Member | Description |
|---|---|---|
| public property | modelmodel as TableModel: |
Data model rendered by the view. |
| public property | selectedColumnselectedColumn as Int = -1 |
No summary. |
| public property | selectedRowselectedRow as Int = -1 |
No summary. |
| public readonly property | selectedValueselectedValue as String: |
Text value of the selected cell, or an empty string when none is selected. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TableViewTableView(model as TableModel = null): |
Creates a table view with an optional model. |
| Modifier and Type | Member | Description |
|---|---|---|
| public override | paintpaint(painter as Painter) as Void: |
No summary. |
| public | setSelectedValue | Updates the selected cell when the model is editable. |