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
| Property | Type | Description | Defined in |
|---|---|---|---|
checked? | boolean | "mixed" | Radio / checkbox / checkable tree items (aria-checked). | js-api/src/u2core/protocol.ts:74 |
completed? | boolean | Wizard step already passed. | js-api/src/u2core/protocol.ts:84 |
current? | boolean | The current tab / the current wizard step. | js-api/src/u2core/protocol.ts:82 |
disabled? | boolean | The item cannot be picked (aria-disabled). | js-api/src/u2core/protocol.ts:80 |
expanded? | boolean | Tree nodes (aria-expanded). | js-api/src/u2core/protocol.ts:76 |
index | number | Position among ALL items (not the rendered window), 0-based. | js-api/src/u2core/protocol.ts:70 |
invalid? | boolean | Wizard step / row reporting an error. | js-api/src/u2core/protocol.ts:86 |
key | string | Stable identity, equal to the item element's data-u2-item. | js-api/src/u2core/protocol.ts:66 |
label | string | The text the user reads on the item (trimmed, single-spaced). | js-api/src/u2core/protocol.ts:68 |
level? | number | Tree depth, 1-based (aria-level). | js-api/src/u2core/protocol.ts:78 |
rendered | boolean | Whether a DOM element exists for it right now (false: off-screen in a virtual list). | js-api/src/u2core/protocol.ts:88 |
selected? | boolean | Selectable items: in the selection (aria-selected). | js-api/src/u2core/protocol.ts:72 |