Documentation
Column Visibility
Column visibility controls allow users to show or hide specific columns through the column editor. Users can search for columns, reorder them via drag-and-drop, and toggle visibility to customize their view and focus on the most relevant data.
Basic Implementation
Column visibility can be controlled using the hide property in the header objects and the editColumns prop on the SimpleTable component.
Column Visibility Configuration
Custom Column Editor Layout
Use customRenderer in columnEditorConfig to fully control the column editor popout layout. It receives searchSection, listSection, and resetColumns
Custom Column Editor Row Layout
Use rowRenderer in columnEditorConfig to reorder components in the column editor drawer.
<SimpleTable
columnEditorConfig={{
rowRenderer: ({ components }) => (
<div style={{ display: 'flex', gap: '8px' }}>
{components.checkbox}
{components.dragIcon}
{components.labelContent}
</div>
)
}}
// ... other props
/>