[Solved] Remove (or hide) select all check box Table component
Alfredo last edited by Alfredo
I have a table in which I only want to allow the selection of 4 elements at most. I have assigned the selection property to multiple but a checkbox appears in the header that allows the selection of all rows. Is it possible to delete or hide it?
CristalT last edited by CristalT
You can declare your
<q-table>in a “more explicit” way by specifying the slot templates and omitting the
selectcomponent of header or just set the
hide-headerproperty in case it isn’t indispensable.
<q-table title="Example" :data="data" :columns="columns" row-key="name" selection="multiple" :selected.sync="selected" > <template v-slot:header> <!-- your custom header here --> </template> </q-table>
Alfredo last edited by
Thank you very much for your reply! . It works ok!
I thought there would be a more direct solution, but really, creating a slot and using it is much easier than it seems.