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) OR onAddItem (inline editing) → shows "Add New" button

  • Inline Editing: Provide onUpdateItem, onDeleteItem, onReorderItems

  • Row Interaction: Provide onClickRow or onClickColumn (mutually exclusive with inline editing)

  • Search: Local or server-side with search prop

  • Filters: 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 button

  • addButtonLabel="+ Custom Label" - Customize button text

Installation

Signature

Examples

Last updated