useSettings
The useSettings plugin adds the ability to show, hide, and rearrange the columns in your DataTable. No additional configuration is required for this plugin.
To hide a column by default add the hiddenToStart: true
key/value to that column.
const columns = [
{
key: 'name',
label: 'Name',
hiddenToStart: true, // hide this column to start
},
...
];
Result
Loading...
Live Editor
Plugin
useSettings
Create a plugin hook that enables settings on the DataTable (add, remove, and rearrange columns).
Parameters
props
PluginProperties (optional, default{}
)
Returns Plugin