Skip to main content

ComponentState

Defined in: js-api/src/u2core/component.ts:34

The per-instance u2 state, kept under one own field so that Component.init can be applied to a platform DG.Widget (a Component by inheritance) without clobbering its own fields.

Properties​

PropertyTypeDescriptionDefined in
adopter?objectThe ambient scope that adopted this component and the release it registered there — dropped on Component.dispose so a long-lived owner does not pile up dead closures.js-api/src/u2core/component.ts:54
adopter.release() => void-js-api/src/u2core/component.ts:54
adopter.scopeScope-js-api/src/u2core/component.ts:54
aiDescriptionstring | null-js-api/src/u2core/component.ts:36
changesWiredboolean-js-api/src/u2core/component.ts:44
detaching?boolean-js-api/src/u2core/component.ts:48
functionsFuncLike[]-js-api/src/u2core/component.ts:39
listenersobject[]-js-api/src/u2core/component.ts:40
name?string-js-api/src/u2core/component.ts:51
platformKilled?boolean-js-api/src/u2core/component.ts:49
propertiesNamedProperty[] | null-js-api/src/u2core/component.ts:37
propertiesMeta?ComponentMetaBase-js-api/src/u2core/component.ts:38
propertyChangeListeners?Set<(c) => void>-js-api/src/u2core/component.ts:50
propertyIndex?Map<string, NamedProperty>-js-api/src/u2core/component.ts:42
propertySignalsMap<string, PropertyEntry>-js-api/src/u2core/component.ts:41
scope?Scope-js-api/src/u2core/component.ts:35
stale?Set<string> | "all"Names a notification marked since the last refresh; 'all' for an anonymous change.js-api/src/u2core/component.ts:46
table?unknown-js-api/src/u2core/component.ts:47
warned?Set<string>-js-api/src/u2core/component.ts:43