Hello, I have a Raw Data Table with column filters enabled. Some of the columns use slicers as their filters, and I would like to configure those slicers to use single-selection mode.
How can I do that?
Hello, I have a Raw Data Table with column filters enabled. Some of the columns use slicers as their filters, and I would like to configure those slicers to use single-selection mode.
How can I do that?
You can do that by setting some custom props in your column filter like this:
.set('columnFilters', [
{
field: 'your_field',
component: 'slicer' ,
props: {
selectMode: 'single' // <----- this is the prop you need
}
}
])
Thanks, that was very helpful. What other properties can be configured there?
For this case, you can set any slicer config, like when you create a normal slicer