Skip to main content

Interface: SubComponent<T>

Represents a sub-component that can be enabled or disabled. Must be used in conjunction with the MnSubComponent decorator.

For example usage see MnSubComponent.

Typeparam

T Component type

Type parameters

NameType
Textends Component

Properties

enabled

Readonly enabled: boolean

State of the component. true if enabled

Defined in

packages/core/src/core/component/component-activator.ts:22

Methods

disable

disable(): void

Disable the component. The component will be destroyed if it is not already destroyed.

Returns

void

Defined in

packages/core/src/core/component/component-activator.ts:32


enable

enable(): void

Enable the component. The component will be created if it is not already created.

Returns

void

Defined in

packages/core/src/core/component/component-activator.ts:27