callWidgetFactoryWithConfig<
W
>(factory
,options?
):WidgetSlotContext
<W
>
Call a widget factory using provided configs.
W
extends Widget
<object
, object
, object
, object
>
the widget factory to call
the optional options
Partial
<WidgetProps
<W
>> | ReadableSignal
<undefined
| Partial
<WidgetProps
<W
>>>
the default config of the widget
Partial
<Pick
<WidgetProps
<W
>, keyof WidgetProps
<W
> & on${string}Change
>>
the events of the widget
Partial
<WidgetProps
<W
>>
the props of the widget
null
| ReadableSignal
<undefined
| Partial
<WidgetProps
<W
>>>
the config of the widget, overriding the defaultConfig
the state, api and directives to track and interact with the widget
createWidgetFactory<
W
,T
>(widgetName
,factory
):WidgetFactory
<W
,T
>
Define a widget factory that can be linked with configuration through the provided widget name.
W
extends Widget
<object
, object
, object
, object
>
The type of the widget
T
extends (config?
) => W
= (config?
) => W
The type of the widget factory function. Useful when the widget factory has a generic.
string
the widget name, used for configuration injection
T
the widget factory function
WidgetFactory
<W
, T
>
the widget factory