-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to customize CSS classes of individual table headers and rows #366
Comments
Apologies, as I don't have the time to create a fork and do a Pull Request, but this is a simple change, I've just made it locally: src/runtime/components/data/Table.vue, changed lines 10 and 99
|
Great idea! I'd go for |
Thanks. While we're chatting about this component, let me ask a question. I would like to use my own components as table cells, ie. |
What would be the use-case? With slots and through |
The use case is actually quite common, I need to use the |
Would you mind opening a new issue for this? |
Done, thanks! |
Is your feature request related to a problem? Please describe.
I've got several columns in the table and I need to set a fixed width for a specific column only.
Describe the solution you'd like
A) Add a new
classNames
attribute to thecolumns
prop objectB) Expose the cell class names in the [key]-header / [key-]data slot so I can define the cell container in the markup to my liking, ie., ie.:
Describe alternatives you've considered
For the time being, I had to resort to using scoped CSS.
The text was updated successfully, but these errors were encountered: