Documentation / @ripl/vue / elementFactory
Function: elementFactory() ​
elementFactory<
TOptions>(create): (options) =>Element<Partial<BaseState>,ElementEventMap>
Defined in: adapters/vue/src/core/define-element.ts:95
Adapts a typed element factory to RiplNodeDefinition's untyped create hook.
Type Parameters ​
| Type Parameter | Description |
|---|---|
TOptions | The factory's own options type. |
Parameters ​
| Parameter | Type | Description |
|---|---|---|
create | (options) => unknown | The element's factory function. |
Returns ​
A create hook that constructs the element from a loose prop bag.
(options) => Element<Partial<BaseState>, ElementEventMap>