UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

12 lines (11 loc) 1.08 kB
import { TableProps } from './interfaces'; export declare const applyTrackBy: <T>(trackBy: TableProps.TrackBy<T>, item: T) => any; export declare const getItemKey: <T>(trackBy: string | ((item: T) => string) | undefined, item: T, index: number) => any; export declare const getTrackableValue: <T>(trackBy: string | ((item: T) => string) | undefined, item: T) => any; export declare const getColumnKey: <T>(column: TableProps.ColumnDefinition<T>, index: number) => import("react").ReactText; declare type SortingStatus = 'sortable' | 'ascending' | 'descending'; export declare const getSortingStatus: (sortable: boolean, sorted: boolean, descending: boolean, disabled: boolean) => SortingStatus | undefined; export declare const getSortingIconName: (sortingState: SortingStatus) => "caret-down-filled" | "caret-down" | "caret-up-filled"; export declare const getAriaSort: (sortingState: SortingStatus) => "none" | "ascending" | "descending"; export declare const isSorted: <T>(column: TableProps.ColumnDefinition<T>, sortingColumn: TableProps.SortingColumn<T>) => boolean; export {};