HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

Is there a slot for a complete row? #357

Open thepurpleblob opened 6 months ago

thepurpleblob commented 6 months ago

...or to ask the question I want an answer to... can I style selected rows? I want certain rows where data in that row has certain values to have a different background color.

Thanks

douglasg14b commented 6 months ago

Same question here, I want to control the style for full rows. Control the selected styling, do a ripple on click....etc

There doesn't appear to be any class for selected rows, so unable to target that for styling :/

universityofglasgow commented 6 months ago

I did find a way. It's not a slot, there's a callback you can specify that defines the class for a row programmatically.

It's one of those "if you didn't know, you wouldn't know to look for it" things.

https://hc200ok.github.io/vue3-easy-data-table-doc/features/class-name-customization.html