Skip to content

@serenity-is/corelib / CreateWidgetParams

Interface: CreateWidgetParams<TWidget, P>

Type Parameters

TWidget extends Widget<P>

P

Properties

container?

optional container: HTMLElement | ArrayLike<HTMLElement>

Defined in

src/ui/widgets/widget.ts:235


element()?

optional element: (e) => void

Parameters

e

Fluent<HTMLElement>

Returns

void

Defined in

src/ui/widgets/widget.ts:236


init()?

optional init: (w) => void

Parameters

w

TWidget

Returns

void

Defined in

src/ui/widgets/widget.ts:237


options?

optional options: P & object

Type declaration

class?

optional class: string

element?

optional element: string | HTMLElement | ArrayLike<HTMLElement> | (el) => void

id?

optional id: string

Defined in

src/ui/widgets/widget.ts:234


type()?

optional type: (options?) => TWidget

Parameters

options?

P

Returns

TWidget

prototype

prototype: TWidget

Defined in

src/ui/widgets/widget.ts:233