Debian Codegraph @

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

raw
1 /// <reference types="react" />
2 import { BaseCellProps } from './Table';
3 import { TdActionsType, TdCompoundExpandType, TdDraggableType, TdExpandType, TdFavoritesType, TdSelectType, TdTreeRowType } from './base/types';
4 export interface TdProps extends BaseCellProps, Omit<React.HTMLProps<HTMLTableDataCellElement>, 'onSelect' | 'width'> {
5 /**
6 * The column header the cell corresponds to.
7 * This attribute replaces table header in mobile viewport. It is rendered by ::before pseudo element.
8 */
9 dataLabel?: string;
10 /** Renders a checkbox or radio select */
11 select?: TdSelectType;
12 /** Turns the cell into an actions cell. Recommended to use an ActionsColumn component as a child of the Td rather than this prop. */
13 actions?: TdActionsType;
14 /** Indicates the cell contains an interactive element and prevents that element's padding from increasing row height. Recommended when other cells in the same row contains text. */
15 hasAction?: boolean;
16 /** Turns the cell into an expansion toggle and determines if the corresponding expansion row is open */
17 expand?: TdExpandType;
18 /** Turns the cell into a compound expansion toggle */
19 compoundExpand?: TdCompoundExpandType;
20 /** Turns the cell into a favorites cell with a star button */
21 favorites?: TdFavoritesType;
22 /** Turns the cell into the first cell in a tree table row */
23 treeRow?: TdTreeRowType;
24 /** Turns the cell into the first cell in a draggable row*/
25 draggableRow?: TdDraggableType;
26 /** True to remove padding */
27 noPadding?: boolean;
28 /** Applies pf-v6-c-table__action to td */
29 isActionCell?: boolean;
30 /**
31 * Tooltip to show on the body cell.
32 * Note: If the body cell is truncated and has simple string content, it will already attempt to display the cell text.
33 * If you want to show a tooltip that differs from the cell text, you can set it here.
34 * To disable it completely you can set it to null.
35 */
36 tooltip?: React.ReactNode;
37 /** Callback on mouse enter */
38 onMouseEnter?: (event: any) => void;
39 /** Indicates the column should be sticky */
40 isStickyColumn?: boolean;
41 /** Adds a border to the right side of the cell */
42 hasRightBorder?: boolean;
43 /** Adds a border to the left side of the cell */
44 hasLeftBorder?: boolean;
45 /** Minimum width for a sticky column */
46 stickyMinWidth?: string;
47 /** Left offset of a sticky column. This will typically be equal to the combined value set by stickyMinWidth of any sticky columns that precede the current sticky column. */
48 stickyLeftOffset?: string;
49 /** Right offset of a sticky column. This will typically be equal to the combined value set by stickyMinWidth of any sticky columns that come after the current sticky column. */
50 stickyRightOffset?: string;
51 }
52 export declare const Td: import("react").ForwardRefExoticComponent<Omit<TdProps, "ref"> & import("react").RefAttributes<HTMLTableDataCellElement>>;
53 //# sourceMappingURL=Td.d.ts.map