SimpleConfigurationTable
A versatile table component with flexible feature-based configuration.
Data Loading:
Static array:
data: RowData[]Simple function:
data: () => Promise<RowData[]>Paginated:
data: (page, pageSize, query?, filters?, sort?) => Promise<{ items: RowData[] }>
Features (combine as needed):
Add Button: Provide
onClickAddNew(opens form) ORonAddItem(inline editing) → shows "Add New" buttonInline Editing: Provide
onUpdateItem,onDeleteItem,onReorderItemsRow Interaction: Provide
onClickRoworonClickColumn(mutually exclusive with inline editing)Search: Local or server-side with
searchpropFilters: Custom filter components in header
Actions: Custom action buttons in header
Pagination: Automatic for array/function data, manual for paginated functions
Add Button Control:
onClickAddNew- Direct callback when button clicked (for opening forms)onAddItem- Save callback for inline editing (adds empty row when button clicked)showAddButton={false}- Hide default add buttonaddButtonLabel="+ Custom Label"- Customize button text
Installation
Signature
Examples
Last updated