Skip to content

Interface: TableProps<Item>#

Renderer.Component.TableProps

Type parameters#

Name
Item

Hierarchy#

  • DOMAttributes<HTMLDivElement>

TableProps

Table of contents#

Properties#

Properties#

autoSize#

Optional autoSize: boolean


className#

Optional className: string


customRowHeights#

Optional customRowHeights: (item: Item, lineHeight: number, paddings: number) => number

Type declaration#

▸ (item, lineHeight, paddings): number

Parameters#
Name Type
item Item
lineHeight number
paddings number
Returns#

number


getTableRow#

Optional getTableRow: (uid: string) => undefined | null | ReactElement<TableRowProps<Item>, string | JSXElementConstructor<any>>

Type declaration#

▸ (uid): undefined | null | ReactElement<TableRowProps<Item>, string | JSXElementConstructor<any>>

Parameters#
Name Type
uid string
Returns#

undefined | null | ReactElement<TableRowProps<Item>, string | JSXElementConstructor<any>>


items#

Optional items: Item[]


noItems#

Optional noItems: ReactNode


onSort#

Optional onSort: (params: TableSortParams) => void

Type declaration#

▸ (params): void

Parameters#
Name Type
params TableSortParams
Returns#

void


renderRow#

Optional renderRow: (item: Item) => undefined | null | ReactElement<TableRowProps<Item>, string | JSXElementConstructor<any>>

Type declaration#

▸ (item): undefined | null | ReactElement<TableRowProps<Item>, string | JSXElementConstructor<any>>

Parameters#
Name Type
item Item
Returns#

undefined | null | ReactElement<TableRowProps<Item>, string | JSXElementConstructor<any>>


rowLineHeight#

Optional rowLineHeight: number

Row line height in pixels


rowPadding#

Optional rowPadding: number

Row padding in pixels


scrollable#

Optional scrollable: boolean


selectable#

Optional selectable: boolean


selectedItemId#

Optional selectedItemId: string


sortByDefault#

Optional sortByDefault: Partial<TableSortParams>


sortSyncWithUrl#

Optional sortSyncWithUrl: boolean


sortable#

Optional sortable: TableSortCallbacks<Item>

Define sortable callbacks for every column in

Sort Item

argument in the callback is an object, provided in


storageKey#

Optional storageKey: string


tableId#

Optional tableId: string


virtual#

Optional virtual: boolean

Use virtual list component to render only visible rows. By default uses a auto sizer to fill available height


virtualHeight#

Optional virtualHeight: number

Only used when virtual is true. Sets the virtual list to be a fixed height. Needed when used in contexts that already have a parent component that is overflow-y: scroll,