Function useVuetifyControl
- useVuetifyControl<T, I>(input, adaptValue?, debounceWait?): I & {
appliedOptions: ComputedRef<any>;
computedLabel: ComputedRef<string>;
control: ComputedRef<T & {
errors: string;
}>;
controlWrapper: ComputedRef<{
description: string;
errors: string;
id: string;
label: string;
required: boolean;
visible: boolean;
}>;
handleBlur: (() => void);
handleFocus: (() => void);
isFocused: Ref<boolean>;
onChange: ((value) => void);
persistentHint: (() => boolean);
rawErrors: ComputedRef<string>;
styles: Styles;
touched: Ref<boolean>;
vuetifyProps: ((path) => any);
} Type Parameters
- T extends {
config: any;
description: string;
errors: string;
id: string;
label: string;
path: string;
required: boolean;
uischema: ControlElement;
visible: boolean;
} - I extends {
control: ComputedRef<T>;
} & DispatchPropsOfControl
Parameters
- input: I
Optional
adaptValue: ((target) => any)Optional
debounceWait: number
Returns I & {
appliedOptions: ComputedRef<any>;
computedLabel: ComputedRef<string>;
control: ComputedRef<T & {
errors: string;
}>;
controlWrapper: ComputedRef<{
description: string;
errors: string;
id: string;
label: string;
required: boolean;
visible: boolean;
}>;
handleBlur: (() => void);
handleFocus: (() => void);
isFocused: Ref<boolean>;
onChange: ((value) => void);
persistentHint: (() => boolean);
rawErrors: ComputedRef<string>;
styles: Styles;
touched: Ref<boolean>;
vuetifyProps: ((path) => any);
}
Adds styles, isFocused, appliedOptions and onChange