- useControl<R, D, P>(props, stateMap): {
control: ComputedRef<Required<P & R>>;
} Type Parameters
- R
- D
- P extends {
schema: JsonSchema;
uischema: UISchemaElement & Scopable;
}
Parameters
- props: P
- stateMap: ((state, props) => R)
- (state, props): R
Parameters
- state: JsonFormsState
- props: P
Returns R
Returns {
control: ComputedRef<Required<P & R>>;
}
- useControl<R, D, P>(props, stateMap, dispatchMap): {
control: ComputedRef<Required<P & R>>;
} & D Type Parameters
- R
- D
- P extends {
schema: JsonSchema;
uischema: UISchemaElement & Scopable;
}
Parameters
- props: P
- stateMap: ((state, props) => R)
- (state, props): R
Parameters
- state: JsonFormsState
- props: P
Returns R
- dispatchMap: ((dispatch) => D)
- (dispatch): D
Parameters
- dispatch: Dispatch<CoreActions>
Returns D
Returns {
control: ComputedRef<Required<P & R>>;
} & D