primevue-mirror/components/tristatecheckbox/TriStateCheckbox.d.ts

63 lines
1.8 KiB
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { InputHTMLAttributes } from 'vue';
import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers';
export interface TriStateCheckboxProps {
/**
* Value of the component.
*/
modelValue?: Nullable<boolean>;
/**
* When present, it specifies that the component should be disabled.
*/
disabled?: boolean | undefined;
/**
* Index of the element in tabbing order.
*/
tabindex?: string | undefined;
/**
* Identifier of the underlying input element.
*/
inputId?: string | undefined;
/**
* Uses to pass all properties of the HTMLInputElement to the focusable input element inside the component.
*/
inputProps?: InputHTMLAttributes | undefined;
/**
* Establishes relationships between the component and label(s) where its value should be one or more element IDs.
*/
'aria-labelledby'?: string | undefined;
/**
2022-09-14 11:26:01 +00:00
* Establishes a string value that labels the component.
*/
2022-09-06 12:03:37 +00:00
'aria-label'?: string | undefined;
}
2022-09-14 11:26:01 +00:00
export interface TriStateCheckboxSlots {}
2022-09-06 12:03:37 +00:00
export declare type TriStateCheckboxEmits = {
/**
* Emitted when the value changes.
* @param {boolean|null|undefined} value - New value.
*/
'update:modelValue': (value: Nullable<boolean>) => void;
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class TriStateCheckbox extends ClassComponent<TriStateCheckboxProps, TriStateCheckboxSlots, TriStateCheckboxEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
TriStateCheckbox: GlobalComponentConstructor<TriStateCheckbox>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [TriStateCheckbox](https://www.primefaces.org/primevue/tristatecheckbox)
2022-09-06 12:03:37 +00:00
*
*/
export default TriStateCheckbox;