@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
34 lines • 1.53 kB
TypeScript
import * as React from 'react';
import { PickOptional } from '../../helpers/typeUtils';
import { OUIAProps } from '../../helpers';
export interface DropdownToggleCheckboxProps extends Omit<React.HTMLProps<HTMLInputElement>, 'type' | 'onChange' | 'disabled' | 'checked'>, OUIAProps {
/** Additional classes added to the DropdownToggleCheckbox */
className?: string;
/** Flag to show if the checkbox selection is valid or invalid */
isValid?: boolean;
/** Flag to show if the checkbox is disabled */
isDisabled?: boolean;
/** Flag to show if the checkbox is checked */
isChecked?: boolean | null;
/** Alternate Flag to show if the checkbox is checked */
checked?: boolean | null;
/** A callback for when the checkbox selection changes */
onChange?: (checked: boolean, event: React.FormEvent<HTMLInputElement>) => void;
/** Element to be rendered inside the <span> */
children?: React.ReactNode;
/** Id of the checkbox */
id: string;
/** Aria-label of the checkbox */
'aria-label': string;
}
export declare class DropdownToggleCheckbox extends React.Component<DropdownToggleCheckboxProps, {
ouiaStateId: string;
}> {
static displayName: string;
static defaultProps: PickOptional<DropdownToggleCheckboxProps>;
constructor(props: DropdownToggleCheckboxProps);
handleChange: (event: React.FormEvent<HTMLInputElement>) => void;
calculateChecked: () => boolean;
render(): JSX.Element;
}
//# sourceMappingURL=DropdownToggleCheckbox.d.ts.map