Debian Codegraph @

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

raw
1 /// <reference types="react" />
2 import { TooltipProps } from '@patternfly/react-core/dist/esm/components/Tooltip';
3 export declare enum TableTextVariant {
4 div = "div",
5 nav = "nav"
6 }
7 export declare enum WrapModifier {
8 wrap = "wrap",
9 nowrap = "nowrap",
10 truncate = "truncate",
11 breakWord = "breakWord",
12 fitContent = "fitContent"
13 }
14 export interface TableTextProps extends React.HTMLProps<HTMLDivElement> {
15 /** Content rendered within the table text */
16 children?: React.ReactNode;
17 /** Additional classes added to the table text */
18 className?: string;
19 /** Determines which element to render as a table text */
20 variant?: TableTextVariant | 'span' | 'div';
21 /** Determines which wrapping modifier to apply to the table text */
22 wrapModifier?: WrapModifier | 'wrap' | 'nowrap' | 'truncate' | 'breakWord' | 'fitContent';
23 /** text to display on the tooltip */
24 tooltip?: React.ReactNode;
25 /** other props to pass to the tooltip */
26 tooltipProps?: Omit<TooltipProps, 'content'>;
27 /** callback used to create the tooltip if text is truncated */
28 onMouseEnter?: (event: any) => void;
29 /** Determines if the TableText is focused by parent component */
30 focused?: boolean;
31 /** Determines if tooltip should have normal visibility behavior. If false, the tooltip will only be shown when children is not entirely visible */
32 tooltipHasDefaultBehavior?: boolean;
33 }
34 export declare const TableText: React.FunctionComponent<TableTextProps>;
35 //# sourceMappingURL=TableText.d.ts.map