LabKit MATLAB Workbench

reference

FrameworkApp SDK API

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"]);

Source

This page is generated from the MATLAB help text in +labkit/+app/+layout/dataTable.m.