@serenity-is/corelib / CreateWidgetParams

Interface: CreateWidgetParams<TWidget, P>

Defined in: src/ui/widgets/widget.ts:248

Type Parameters

TWidget

TWidget extends Widget<P>

P

P

Properties

container?

optional container: HTMLElement | ArrayLike<HTMLElement>

Defined in: src/ui/widgets/widget.ts:251


element()?

optional element: (e) => void

Defined in: src/ui/widgets/widget.ts:252

Parameters

e

Fluent

Returns

void


init()?

optional init: (w) => void

Defined in: src/ui/widgets/widget.ts:253

Parameters

w

TWidget

Returns

void


options?

optional options: P & object

Defined in: src/ui/widgets/widget.ts:250

Type Declaration

class?

optional class: string

element?

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

id?

optional id: string


type?

optional type: {(options?): TWidget; prototype: TWidget; }

Defined in: src/ui/widgets/widget.ts:249

Parameters

options?

P

Returns

TWidget

prototype

prototype: TWidget