List manager

The list manager component can be used to implement customizable table columns. Columns can be configured to be enabled or disabled by default or be unhidable.

Examples

Basic column list

The order of the columns can be changed by dragging and dropping the columns themselves. This list can be used within a page or within a modal. Always make sure to set isShownByDefault and isSelected (if needed) to the same boolean value in the initial state.

3 selected

Props

ListManager

*required
NameTypeDefaultDescription
columnsrequiredListManagerItem[]Current column state
onCancel() => voidCallback to close the modal
onOrderChange(columns: ListManagerItem[]) => voidCallback when the column order changes
onSave(columns: ListManagerItem[]) => voidCallback to save the column state
onSelect(column: ListManagerItem) => voidCallback when a column is selected or deselected
onSelectAll(columns: ListManagerItem[]) => voidCallback when all columns are selected or deselected
ouiaIdstring | number'Column'Custom OUIA ID