@serenity-is/corelib / WidgetProps
Type Alias: WidgetProps<P>
WidgetProps<
P> =object&SNoInfer<P>
Defined in: src/ui/widgets/widgetutils.ts:171
Props accepted by all widgets, including the target element and common element attributes.
Type Declaration
class?
optionalclass:string
Optional CSS class(es) for the widget's DOM node.
element?
optionalelement: (el) =>void|HTMLElement|ArrayLike<HTMLElement> |string
The element to bind the widget to, as an element, array-like, selector or a callback that receives the created element.
id?
optionalid:string
Optional id for the widget's DOM node.
Type Parameters
P
P
The widget's specific options type.