BaseComponent
Official
The base class for all components.
Import:
import { BaseComponent } from 'obsidian';Signature:
export class BaseComponentConstructor
new BaseComponent()Constructor.
To extract the constructor type, use ExtractConstructor<BaseComponent>.
Properties
| Property | Type | Description | |
|---|---|---|---|
| disabled | boolean | Whether the component is disabled. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| setDisabled(disabled) | this | Sets the disabled state of the component. | |
| then(cb) | this | Facilitates chaining. |
Links to this page: