@awsui/components-react
Version:
On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en
65 lines • 1.72 kB
TypeScript
import React from 'react';
import { ColumnWidthStyle } from '../column-widths-utils';
import { TableProps } from '../interfaces';
import { StickyColumnsModel } from '../sticky-columns';
import { TableRole } from '../table-role';
export interface TableHeaderCellProps<ItemType> {
tabIndex: number;
column: TableProps.ColumnDefinition<ItemType>;
activeSortingColumn?: TableProps.SortingColumn<ItemType>;
sortingDescending?: boolean;
sortingDisabled?: boolean;
wrapLines?: boolean;
stuck?: boolean;
sticky?: boolean;
hidden?: boolean;
stripedRows?: boolean;
onClick(detail: TableProps.SortingState<any>): void;
onResizeFinish: () => void;
colIndex: number;
updateColumn: (columnId: PropertyKey, newWidth: number) => void;
resizableColumns?: boolean;
resizableStyle?: ColumnWidthStyle;
isEditable?: boolean;
columnId: PropertyKey;
stickyState: StickyColumnsModel;
cellRef: React.RefCallback<HTMLElement>;
focusedComponent?: null | string;
tableRole: TableRole;
resizerRoleDescription?: string;
resizerTooltipText?: string;
isExpandable?: boolean;
hasDynamicContent?: boolean;
variant: TableProps.Variant;
tableVariant?: string;
}
export declare function TableHeaderCell<ItemType>({
tabIndex,
column,
activeSortingColumn,
sortingDescending,
sortingDisabled,
wrapLines,
focusedComponent,
stuck,
sticky,
hidden,
stripedRows,
onClick,
colIndex,
updateColumn,
resizableColumns,
resizableStyle,
onResizeFinish,
isEditable,
columnId,
stickyState,
cellRef,
tableRole,
resizerRoleDescription,
resizerTooltipText,
isExpandable,
hasDynamicContent,
variant,
tableVariant
}: TableHeaderCellProps<ItemType>): JSX.Element;