Skip to content

SettingEx.addComponentClass method

SettingEx › addComponentClass

Adds a component to the setting.

Signature:

addComponentClass(componentClass: new (containerEl: HTMLElement) => T, cb: (component: T) => void): this

Parameters:

ParameterTypeDescription
componentClassnew (containerEl: HTMLElement) => TThe class of the component to add.
cb(component: T) => voidThe callback to call with the component.

Returns: thisThe setting instance.