verbb / tablemaker

A user-definable table field type for Craft CMS
MIT License
40 stars 32 forks source link

Pass a class to automatic table output #4

Open bilke opened 9 years ago

bilke commented 9 years ago

It would be useful if {{ entry.myTableField.table }} would allow to pass a parameter which adds a class to the outputted table-element:

{{ entry.myTableField.table("className") }}
joshangell commented 9 years ago

Good idea - I'll add it to the list!

SimonEast commented 7 years ago

+1 to this 👍

If I get time, it might be something I can create a PR for as we get further along in our current client project (will see!).

tyssen commented 4 years ago

It would also be good if you could pass a class to individual columns as well as the whole table.