Skip to main content

LensStudio:Ui.ModelIndex

Class

Handle identifying a single cell within a ScriptableModel by its row, column, and path of parent row indices.

Index

Constructors

Constructor

new ModelIndex(): ModelIndex

Constructs an invalid (root) ModelIndex; obtain valid indices via the model's index() method.

Returns

ModelIndex

Properties

column

readonly column: number

Column position of the cell this index refers to.


parentPath

readonly parentPath: number[]

Path of parent row indices from the model root to this index's parent.


row

readonly row: number

Row position of the cell this index refers to.