BaseTableComponent

Core table component that displays tabular data with rich features including sorting, resizing, selection, expansion, and inline editing capabilities.

Features:

  • Column sorting (single and multi-column)

  • Column resizing (resets on refresh)

  • Row selection

  • Expandable child rows

  • Inline editing mode

  • Custom renderers for cells, rows, and headers

  • Loading states with skeleton rows

  • Action columns (edit, delete, custom actions)

Installation

import { BaseTableComponent } from 'uxp/components';

Signature

const BaseTableComponent: React.FunctionComponent<BaseTableComponentProps>

Examples

Properties

Name
Type
Mandatory
Default Value
Example Value

columns

{ [id: string]: ExtendedColumn }

Yes

-

-

data

Yes

-

-

loading

boolean

Yes

-

-

noItemsMessage

string | React.ReactNode

No

-

-

totalWidth

string | number

Yes

-

-

handleResize

(id: string, width: number) => void

Yes

-

-

renderHeader

(columns: { [id: string]: ExtendedColumn }, handleResize: (id: string, width: number) => void) => React.ReactNode

No

-

-

renderRow

(tableRowProps: TableRowProps) => React.ReactNode

No

-

-

renderChildRows

(childRows: RowData[], rowProps: TableRowBasicProps) => React.ReactNode

No

-

-

onClickRow

(e: React.MouseEvent, item: RowData) => void

No

-

-

isRowSelected

(item: RowData) => boolean

No

-

-

onSelectRow

(item: RowData) => void

No

-

-

sort

No

-

-

multiColumnSort

boolean

No

-

-

onChangeSort

(sort: Sort) => void

No

-

-

editable

No

-

-

Last updated