@nextcloud/vue
Version:
Nextcloud vue components
100 lines (99 loc) • 2.61 kB
TypeScript
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
/**
* id attribute of the checkbox element
*/
id: {
type: StringConstructor;
default: () => string;
validator: (id: unknown) => boolean;
};
/**
* checked state of the the checkbox element
*/
modelValue: {
type: BooleanConstructor;
default: boolean;
};
/**
* value of the checkbox input
*/
value: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* disabled state of the checkbox element
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>, {}, {}, {
/**
* determines if the action is focusable
*
* @return {boolean} is the action focusable ?
*/
isFocusable(): boolean;
/**
* aria-checked attribute for role="menuitemcheckbox"
*
* @return {'true'|'false'|undefined} aria-checked value if needed
*/
ariaChecked(): "true" | "false" | undefined;
}, {
checkInput(): void;
onChange(event: any): void;
}, {
beforeUpdate(): void;
data(): {
text: any;
};
computed: {
isLongText(): any;
};
methods: {
getText(): any;
};
}, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue" | "check" | "uncheck")[], "change" | "update:modelValue" | "check" | "uncheck", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
/**
* id attribute of the checkbox element
*/
id: {
type: StringConstructor;
default: () => string;
validator: (id: unknown) => boolean;
};
/**
* checked state of the the checkbox element
*/
modelValue: {
type: BooleanConstructor;
default: boolean;
};
/**
* value of the checkbox input
*/
value: {
type: (StringConstructor | NumberConstructor)[];
default: string;
};
/**
* disabled state of the checkbox element
*/
disabled: {
type: BooleanConstructor;
default: boolean;
};
}>> & Readonly<{
onChange?: ((...args: any[]) => any) | undefined;
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
onCheck?: ((...args: any[]) => any) | undefined;
onUncheck?: ((...args: any[]) => any) | undefined;
}>, {
id: string;
value: string | number;
disabled: boolean;
modelValue: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
export default _default;