Skip to main content

IItemState

Defined in: js-api/src/u2core/protocol.ts:64

One addressable item of a collection-like control: a list/tree/table row, a chip, an option, a radio/checkbox item, a tab, a wizard step, a menu item, a breadcrumb.

Properties​

PropertyTypeDescriptionDefined in
checked?boolean | "mixed"Radio / checkbox / checkable tree items (aria-checked).js-api/src/u2core/protocol.ts:74
completed?booleanWizard step already passed.js-api/src/u2core/protocol.ts:84
current?booleanThe current tab / the current wizard step.js-api/src/u2core/protocol.ts:82
disabled?booleanThe item cannot be picked (aria-disabled).js-api/src/u2core/protocol.ts:80
expanded?booleanTree nodes (aria-expanded).js-api/src/u2core/protocol.ts:76
indexnumberPosition among ALL items (not the rendered window), 0-based.js-api/src/u2core/protocol.ts:70
invalid?booleanWizard step / row reporting an error.js-api/src/u2core/protocol.ts:86
keystringStable identity, equal to the item element's data-u2-item.js-api/src/u2core/protocol.ts:66
labelstringThe text the user reads on the item (trimmed, single-spaced).js-api/src/u2core/protocol.ts:68
level?numberTree depth, 1-based (aria-level).js-api/src/u2core/protocol.ts:78
renderedbooleanWhether a DOM element exists for it right now (false: off-screen in a virtual list).js-api/src/u2core/protocol.ts:88
selected?booleanSelectable items: in the selection (aria-selected).js-api/src/u2core/protocol.ts:72