Setting.addText method
Setting › addText
Official
Add a text component to the setting.Signature:
addText(cb: (component: TextComponent) => unknown): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| cb | (component: TextComponent) => unknown | The callback to add the text component. |
Returns: this — The setting.
Since: 0.9.7
Example:
setting.addText((text) => { text.setValue('foo');});