Skip to main content

IControlState

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

The typed, JSON-safe state block every Control fills — what generic bdd steps read. Keys a kind does not have are absent (never null-filled). Read on demand, never cached.

Properties​

PropertyTypeDescriptionDefined in
busy?booleanAsync work in flight (dialog OK, async view, source load, wizard step).js-api/src/u2core/protocol.ts:127
checked?boolean | "mixed"Checkbox / switch state.js-api/src/u2core/protocol.ts:139
current?stringKey of the current tab / wizard step / active breadcrumb.js-api/src/u2core/protocol.ts:149
enabledbooleanNo aria-disabled="true" / disabled on the root.js-api/src/u2core/protocol.ts:113
error?string | nullThe validation / error-row message the user sees; null when none.js-api/src/u2core/protocol.ts:125
expanded?booleanSection / accordion pane / tree node / disclosure expanded.js-api/src/u2core/protocol.ts:137
extra?objectFree per-kind readings that do not deserve a typed key (a stat card's delta). Same contract as IWidgetStatus.values: numberstring
focusedbooleandocument.activeElement is the root or inside it (or inside a popup this control owns).js-api/src/u2core/protocol.ts:117
items?IItemsStateCollection-like controls: every item, rendered or not.js-api/src/u2core/protocol.ts:145
kindstringThe data-u2 value; for a platform DG.Widget without one, widget.type ('Scatter plot').js-api/src/u2core/protocol.ts:105
label?stringThe accessible name the user sees: label part, button text, dialog/section title.js-api/src/u2core/protocol.ts:111
name?stringExplicit identity — equal to data-u2-name. Never derived from a caption.js-api/src/u2core/protocol.ts:109
open?booleanPopup / dropdown / dialog open.js-api/src/u2core/protocol.ts:135
placeholder?stringThe hint the empty editor shows.js-api/src/u2core/protocol.ts:133
pressed?booleanToggle button state (aria-pressed).js-api/src/u2core/protocol.ts:141
readOnly?booleanShown but not editable (aria-readonly).js-api/src/u2core/protocol.ts:119
required?booleanMust have a value (aria-required).js-api/src/u2core/protocol.ts:121
selected?booleanFor a selectable card / row-like control.js-api/src/u2core/protocol.ts:143
selection?string[]Keys of the selected items (list, tree, table, multi-choice, chips, multi-select).js-api/src/u2core/protocol.ts:147
tag?stringThe registry tag when the control was built from a spec node or its kind maps to one.js-api/src/u2core/protocol.ts:107
text?stringThe value as displayed (the editor's text, the chosen option's caption, a checkbox 'true'/'false').js-api/src/u2core/protocol.ts:131
valid?booleanInputs, forms, wizard steps: no validation message.js-api/src/u2core/protocol.ts:123
value?JsonValueRaw value, JSON-projected (inputs; a range slider: [lo, hi]).js-api/src/u2core/protocol.ts:129
visiblebooleanConnected, not under a hidden element, and laid out.js-api/src/u2core/protocol.ts:115