LabKit MATLAB Workbench

reference

FrameworkApp SDK API

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

Source

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