Skip to main content

ComponentState

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

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:56
adopter.release() => void-js-api/src/u2core/component.ts:56
adopter.scopeScope-js-api/src/u2core/component.ts:56
aiDescriptionstring | null-js-api/src/u2core/component.ts:38
builtDuring?string[]With u2 debug on: the components whose constructors were running when this one was built, by class name.js-api/src/u2core/component.ts:60
byOwner?booleanDisposed because its owner went, not by hand.js-api/src/u2core/component.ts:58
changesWiredboolean-js-api/src/u2core/component.ts:46
detaching?boolean-js-api/src/u2core/component.ts:50
functionsFuncLike[]-js-api/src/u2core/component.ts:41
listenersobject[]-js-api/src/u2core/component.ts:42
name?string-js-api/src/u2core/component.ts:53
platformKilled?boolean-js-api/src/u2core/component.ts:51
propertiesNamedProperty[] | null-js-api/src/u2core/component.ts:39
propertiesMeta?ComponentMetaBase-js-api/src/u2core/component.ts:40
propertyChangeListeners?Set<(c) => void>-js-api/src/u2core/component.ts:52
propertyIndex?Map<string, NamedProperty>-js-api/src/u2core/component.ts:44
propertySignalsMap<string, PropertyEntry>-js-api/src/u2core/component.ts:43
scope?Scope-js-api/src/u2core/component.ts:37
stale?Set<string> | "all"Names a notification marked since the last refresh; 'all' for an anonymous change.js-api/src/u2core/component.ts:48
table?unknown-js-api/src/u2core/component.ts:49
warned?Set<string>-js-api/src/u2core/component.ts:45