@nextcloud/vue
Version:
Nextcloud vue components
15 lines (14 loc) • 532 B
TypeScript
import { ComputedRef, InjectionKey } from 'vue';
export declare const INSIDE_RADIO_GROUP_KEY: InjectionKey<ComputedRef<{
modelValue: string;
onUpdate: (value: string) => void;
register: (isButton: boolean) => void;
}>>;
/**
* To check if inside a radio group and if yes inject the current modelValue as well as the onUpdate method.
*/
export declare function useInsideRadioGroup(): ComputedRef<{
modelValue: string;
onUpdate: (value: string) => void;
register: (isButton: boolean) => void;
}> | undefined;