Skip to content

BaseComponent

Official

The base class for all components.

Import:

import { BaseComponent } from 'obsidian';

Signature:

export class BaseComponent

Constructor

new BaseComponent()

Constructor.

To extract the constructor type, use ExtractConstructor<BaseComponent>.

Properties

PropertyTypeDescription
disabledbooleanWhether the component is disabled.

Methods

MethodReturnsDescription
setDisabled(disabled)thisSets the disabled state of the component.
then(cb)thisFacilitates chaining.

Links to this page: