Skip to content

DomElementInfo.cls?

DomElementInfo › cls?

Official

Type: string | string[]

The class to be assigned. Can be a space-separated string or an array of strings.

Example:

createEl('p', { cls: 'foo bar' });
createEl('p', { cls: ['foo', 'bar'] });