Skip to content

Setting.addTextArea method

Setting › addTextArea

Official

Add a text area component to the setting.

Signature:

addTextArea(cb: (component: TextAreaComponent) => unknown): this

Parameters:

Parameter Type Description
cb (component: TextAreaComponent) => unknown The callback to add the text area component.

Returns: thisThe setting.

Since: 0.9.7

Example:

setting.addTextArea((textArea) => {
textArea.setValue('foo');
});