@serenity-is/corelib / ElementAttribute
Class: ElementAttribute
Defined in: src/types/attributes.ts:23
Specifies the root element tag for a widget (e.g. "div", "span").
Used by the widget factory to create the default DOM element.
Extends
Constructors
Constructor
new ElementAttribute(
value):ElementAttribute
Defined in: src/types/attributes.ts:30
Creates a new ElementAttribute.
Parameters
value
string
Tag name for the widget's root element (e.g. "div").
Returns
ElementAttribute
Overrides
Properties
value
value:
string
Defined in: src/types/attributes.ts:30
Tag name for the widget's root element (e.g. "div").
[typeInfo]
static[typeInfo]:ClassTypeInfo<"Serenity.">
Defined in: src/types/attributes.ts:24