1 | import * as React from 'react';
|
2 | export interface DataListCheckProps extends Omit<React.HTMLProps<HTMLInputElement>, 'onChange' | 'checked'> {
|
3 | /** Additional classes added to the DataList item checkbox */
|
4 | className?: string;
|
5 | /** Flag to show if the DataList checkbox selection is valid or invalid */
|
6 | isValid?: boolean;
|
7 | /** Flag to show if the DataList checkbox is disabled */
|
8 | isDisabled?: boolean;
|
9 | /** Flag to show if the DataList checkbox is checked when it is controlled by React state. Both isChecked and checked are valid,
|
10 | * but only use one.
|
11 | * To make the DataList checkbox uncontrolled, instead use the defaultChecked prop, but do not use both.
|
12 | */
|
13 | isChecked?: boolean;
|
14 | /** Flag to show if the DataList checkbox is checked when it is controlled by React state. Both isChecked and checked are valid,
|
15 | * but only use one.
|
16 | * To make the DataList checkbox uncontrolled, instead use the defaultChecked prop, but do not use both.
|
17 | */
|
18 | checked?: boolean;
|
19 | /** Flag to set default value of DataList checkbox when it is uncontrolled by React state.
|
20 | * To make the DataList checkbox controlled, instead use the isChecked prop, but do not use both.
|
21 | */
|
22 | defaultChecked?: boolean;
|
23 | /** A callback for when the DataList checkbox selection changes */
|
24 | onChange?: (checked: boolean, event: React.FormEvent<HTMLInputElement>) => void;
|
25 | /** Aria-labelledby of the DataList checkbox */
|
26 | 'aria-labelledby': string;
|
27 | /** Flag to indicate if other controls are used in the DataListItem */
|
28 | otherControls?: boolean;
|
29 | }
|
30 | export declare const DataListCheck: React.FunctionComponent<DataListCheckProps>;
|
31 | //# sourceMappingURL=DataListCheck.d.ts.map |
\ | No newline at end of file |