New! DataTableColumns is in beta, test it out and let us know what you think. This component is available on thestable branch.

DataTableColumns

customize datatable columns for data

Props

drop

Whether to show the controls via a DropButton.

boolean
true

options

The set of possible columns.

array of strings
['id', 'name', 'age']
array of objects

An array of objects that can include a label which will render as the option label, property which should be a data property, and disabled which will determine if the option can be checked/unchecked.

[
  { label: 'Id', property: 'id', disabled: true },
  { label: 'Name', property: 'name' },
  { label: 'Age', property: 'age' },
]