| 1 |
/// <reference types="react" /> |
| 2 |
import { OUIAProps } from '@patternfly/react-core/dist/esm/helpers'; |
| 3 |
export interface TrProps extends Omit<React.HTMLProps<HTMLTableRowElement>, 'onResize'>, OUIAProps { |
| 4 |
/** Content rendered inside the <tr> row */ |
| 5 |
children?: React.ReactNode; |
| 6 |
/** Additional classes added to the <tr> row */ |
| 7 |
className?: string; |
| 8 |
/** @hide Forwarded ref */ |
| 9 |
innerRef?: React.Ref<any>; |
| 10 |
/** Flag indicating the Tr is hidden */ |
| 11 |
isHidden?: boolean; |
| 12 |
/** Flag indicating whether an "expandable" Tr is expanded or not. Only applicable to a Tr within a Tbody. |
| 13 |
* To prevent column widths from responding automatically when expandable rows are toggled, the width prop must also be passed into either the th or td component |
| 14 |
*/ |
| 15 |
isExpanded?: boolean; |
| 16 |
/** Flag indicating that the "control row" Tr has an expandable sibling Tr that is expanded or not. Only applicable to |
| 17 |
* a Tr within a Tbody, and should have the same value as an expandable Tr's isExpanded prop. |
| 18 |
*/ |
| 19 |
isContentExpanded?: boolean; |
| 20 |
/** Only applicable to Tr within the Tbody: Whether the row is editable */ |
| 21 |
isEditable?: boolean; |
| 22 |
/** Flag which adds hover styles for the clickable table row */ |
| 23 |
isClickable?: boolean; |
| 24 |
/** Flag indicating the row is selected - adds selected styling */ |
| 25 |
isRowSelected?: boolean; |
| 26 |
/** Flag indicating the row is striped */ |
| 27 |
isStriped?: boolean; |
| 28 |
/** Flag indicating the row will act as a border. This is typically used for a table with a nested and sticky header. */ |
| 29 |
isBorderRow?: boolean; |
| 30 |
/** Flag indicating the row is controlling the expansion of another row. */ |
| 31 |
isControlRow?: boolean; |
| 32 |
/** An event handler for the row */ |
| 33 |
onRowClick?: (event?: React.KeyboardEvent | React.MouseEvent) => void; |
| 34 |
/** Flag indicating that the row is selectable */ |
| 35 |
isSelectable?: boolean; |
| 36 |
/** Flag indicating the spacing offset of the first cell should be reset */ |
| 37 |
resetOffset?: boolean; |
| 38 |
/** Value to overwrite the randomly generated data-ouia-component-id.*/ |
| 39 |
ouiaId?: number | string; |
| 40 |
/** Set the value of data-ouia-safe. Only set to true when the component is in a static state, i.e. no animations are occurring. At all other times, this value must be false. */ |
| 41 |
ouiaSafe?: boolean; |
| 42 |
} |
| 43 |
export declare const Tr: import("react").ForwardRefExoticComponent<Omit<TrProps, "ref"> & import("react").RefAttributes<HTMLTableRowElement>>; |
| 44 |
//# sourceMappingURL=Tr.d.ts.map |