Debian Codegraph @

node/@patternfly/react-table/dist/esm/components/Table/EditableSelectInputCell.d.ts

raw
1 /// <reference types="react" />
2 import { EditableSelectInputProps } from './base/types';
3 export interface IEditableSelectInputCell extends Omit<React.HTMLProps<HTMLElement | HTMLDivElement>, 'onSelect' | 'onToggle'> {
4 /** Row index of this select input cell */
5 rowIndex: number;
6 /** Cell index of this select input cell */
7 cellIndex: number;
8 /** Props to build the select component */
9 props: EditableSelectInputProps;
10 /** Event handler which fires when user selects an option in this cell */
11 onSelect: (event: React.MouseEvent | React.ChangeEvent, newValue: any | any[], rowIndex: number, cellIndex: number, isPlaceholder?: boolean) => void;
12 /** Options to display in the expandable select menu */
13 options?: React.ReactElement<any>[];
14 /** Flag indicating the select input is disabled */
15 isDisabled?: boolean;
16 /** Flag indicating the toggle gets placeholder styles **/
17 isPlaceholder?: boolean;
18 /** Current selected options to display as the read only value of the table cell */
19 selections?: any | any[];
20 /** Flag indicating the select menu is open */
21 isOpen?: boolean;
22 /** Event handler which fires when the select toggle is toggled */
23 onToggle?: (event: React.MouseEvent | undefined) => void;
24 /** Event handler which fires when the user clears the selections */
25 clearSelection?: (event: React.MouseEvent, rowIndex: number, cellIndex: number) => void;
26 }
27 export declare const EditableSelectInputCell: React.FunctionComponent<IEditableSelectInputCell>;
28 //# sourceMappingURL=EditableSelectInputCell.d.ts.map