reference
labkit.app.event.TableCellSelection
Describe selected cells in a semantic data table.
Syntax
selection = labkit.app.event.TableCellSelection(cellIndices)Description
TableCellSelection carries unique N-by-2 row/column index pairs. It replaces native MATLAB table-selection event shapes at the App callback boundary.
Inputs
cellIndices- Unique positive integer N-by-2 matrix. An empty selection is zeros(0,2).
Outputs
selection- Immutable TableCellSelection value.
Errors
labkit:app:contract:InvalidValue- cellIndices is not a unique positive integer N-by-2 matrix.
Example
selection = labkit.app.event.TableCellSelection([1 2; 3 1]);
assert(isequal(selection.CellIndices, [1 2; 3 1]))Related APIs
labkit.app.event.TableCellEdit— Describe one validated table-cell edit signal.labkit.app.layout.dataTable— Add a tabular data display with optional editing and selection.labkit.app.event.IntervalScroll— Describe one normalized interval scroll gesture.labkit.app.event.ListSelection— Describe selected file or list item identities.
Source
This page is generated from the MATLAB help text in +labkit/+app/+event/TableCellSelection.m.