Core API Overview > @adpt/core > Component
Component class
Signature:
export declare abstract class Component<Props extends object = {}, State extends object = {}> implements GenericInstanceMethods
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(props) | Constructs a new instance of the Component class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
cleanup | (this: this) => void | ||
dependsOn | DependsOnMethod | ||
deployedWhen | DeployedWhenMethod | A derived component's custom deployedWhen method. | |
deployedWhenIsTrivial | boolean | A derived component can set this flag to true to indicate to user interfaces that this component's status should not typically be shown to the user, unless requested. | |
deployInfo | DeployInfo | ||
props | Props & Partial< BuiltinProps > | ||
state | Readonly<State> |
Methods
Method | Modifiers | Description |
---|---|---|
build(helpers) | ||
initialState() | ||
setState(stateUpdate) | ||
status(observeForStatus, buildData) |