Function useVanillaControl
- useVanillaControl<I>(input, adaptTarget?): I & {
appliedOptions: ComputedRef<any>;
controlWrapper: ComputedRef<{
description: any;
errors: any;
id: any;
label: any;
required: any;
visible: any;
}>;
isFocused: Ref<boolean>;
onChange: ((event) => void);
styles: Styles;
} Type Parameters
- I extends {
control: any;
handleChange: any;
}
Parameters
- input: I
- adaptTarget: ((target) => any) = ...
Returns I & {
appliedOptions: ComputedRef<any>;
controlWrapper: ComputedRef<{
description: any;
errors: any;
id: any;
label: any;
required: any;
visible: any;
}>;
isFocused: Ref<boolean>;
onChange: ((event) => void);
styles: Styles;
}
Adds styles, isFocused, appliedOptions and onChange