@serenity-is/corelib / CreateWidgetParams
Interface: CreateWidgetParams<TWidget, P>
Type Parameters
• TWidget extends Widget<P>
• P
Properties
container?
optionalcontainer:HTMLElement|ArrayLike<HTMLElement>
Defined in
element()?
optionalelement: (e) =>void
Parameters
e
Fluent<HTMLElement>
Returns
void
Defined in
init()?
optionalinit: (w) =>void
Parameters
w
TWidget
Returns
void
Defined in
options?
optionaloptions:P&object
Type declaration
class?
optionalclass:string
element?
optionalelement:string|HTMLElement|ArrayLike<HTMLElement> | (el) =>void
id?
optionalid:string
Defined in
type()?
optionaltype: (options?) =>TWidget
Parameters
options?
P
Returns
TWidget
prototype
prototype:
TWidget