UNPKG

primevue

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primevue.svg)](https://badge.fury.io/js/primevue) [![Discord Chat](https://img.shields.io/discord/55794023

63 lines (56 loc) 1.82 kB
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; /** * Establishes a string value that labels the component. */ 'aria-label'?: string | undefined; } export interface TriStateCheckboxSlots {} export declare type TriStateCheckboxEmits = { /** * Emitted when the value changes. * @param {boolean|null|undefined} value - New value. */ 'update:modelValue': (value: Nullable<boolean>) => void; }; declare class TriStateCheckbox extends ClassComponent<TriStateCheckboxProps, TriStateCheckboxSlots, TriStateCheckboxEmits> {} declare module '@vue/runtime-core' { interface GlobalComponents { TriStateCheckbox: GlobalComponentConstructor<TriStateCheckbox>; } } /** * * TriStateCheckbox is used to select either 'true', 'false' or 'null' as the value. * * Demos: * * - [TriStateCheckbox](https://www.primefaces.org/primevue/tristatecheckbox) * */ export default TriStateCheckbox;