• W extends Widget
new BaseWidgetDirective<
W
>():BaseWidgetDirective
<W
>
abstract
protected
readonly
_widget:AngularWidget
<W
>
get
api():W
["api"
]
W
["api"
]
get
state():Signal
<WidgetState
<W
>>
Signal
<WidgetState
<W
>>
get
widget():ContextWidget
<W
>
ngOnChanges(
changes
):void
• changes: SimpleChanges
void
OnChanges.ngOnChanges
ngOnInit():
void
void
OnInit.ngOnInit
callWidgetFactoryWithConfig<
W
>(parameter
):AngularWidget
<W
>
Call a widget factory using provided configs.
• W extends Widget
<object
, object
, object
, object
, object
>
• parameter
the parameter
• parameter.afterInit?
a callback to call after successful setup of the widget
• parameter.defaultConfig?: Partial
<WidgetProps
<W
>> | ReadableSignal
<undefined
| Partial
<WidgetProps
<W
>>>
the default config of the widget
• parameter.events?: Pick
<WidgetProps
<W
>, keyof WidgetProps
<W
> & `on${string}`>
the events of the widget
• parameter.factory: WidgetFactory
<W
>
the widget factory to call
• parameter.widgetConfig?: null
| ReadableSignal
<undefined
| Partial
<WidgetProps
<W
>>>
the config of the widget, overriding the defaultConfig
the widget