SettingEx.addComponentClass method
SettingEx › addComponentClass
Adds a component to the setting.Signature:
addComponentClass(componentClass: new (containerEl: HTMLElement) => T, cb: (component: T) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| componentClass | new (containerEl: HTMLElement) => T | The class of the component to add. |
| cb | (component: T) => void | The callback to call with the component. |
Returns: this — The setting instance.