reference
labkit.app.layout.dataTable
Add a tabular data display with optional editing and selection.
Syntax
node = labkit.app.layout.dataTable(id, Name=Value)Description
Declares a semantic data table and typed cell callbacks.
Inputs
id- Unique MATLAB identifier for the layout target.
Options
Title- Reader-facing panel title or blank. A single-table section supplies its title when this is blank. Default: blank.
Columns- Column-label text row. Default: strings(1,0).
RowNames- Row-label text row. Default: strings(1,0).
ColumnEditable- Logical scalar or row matching Columns. Default: false.
OnCellEdited- Scalar callback state = callback(state,edit,context), where edit is a
labkit.app.event.TableCellEdit. Default: []. OnCellSelectionChanged- Scalar callback state = callback(state,selection,context), where selection is a
labkit.app.event.TableCellSelection. Default: [].
Outputs
node- Immutable internal layout node accepted by layout containers.
Errors
Throws labkit:app:contract:* for invalid options or callback signatures.
Typical Call
node = labkit.app.layout.dataTable("results", Columns=["Name" "Value"]);Related APIs
labkit.app.event.TableCellEdit— Describe one validated table-cell edit signal.labkit.app.event.TableCellSelection— Describe selected cells in a semantic data table.labkit.app.layout.button— Add a push button with one explicit pressed callback.labkit.app.layout.field— Add a text, numeric, choice, or logical input field.labkit.app.layout.fileList— Add file selection and portable-source controls.labkit.app.layout.group— Arrange related child elements without a titled boundary.labkit.app.layout.logPanel— Add a text display for App log messages.labkit.app.layout.plotArea— Add one or more axes rendered by an App-owned renderer.
Source
This page is generated from the MATLAB help text in +labkit/+app/+layout/dataTable.m.