Skip to content

Setting.setName method

Setting › setName

Official

Set the name of the setting.

Signature:

setName(name: string): this

Parameters:

ParameterTypeDescription
namestringThe name.

Returns: this

Since: 0.9.7


Official

Set the name of the setting.

Signature:

setName(name: string | DocumentFragment): this

Parameters:

ParameterTypeDescription
namestring | DocumentFragmentThe name.

Returns: this

Since: 0.12.16

Example:

const fragment = createFragment();
fragment.createEl('strong', { text: 'bar' });
setting.setName(fragment);