Hi,
thanks for your post, and sorry for the trouble.
There’s no possibility for this via input fields, but you could use a plugin filter hook to add them via some string manipulation, e.g. by using the tablepress_cell_tag_attributes
filter hook.
However, the jQuery approach should also work, you will just need to make sure that the code runs before the FooTable JS code.
Regards,
Tobias
Thread Starter
N2Clic
(@n2clic)
Thanks for the prompt answer Tobias 🙂
However regarding the jQuery approach, I could get it to work. I even tried to use the setTimeout() method. I’ll check with the guys who made footable to see if they can help.
Do you know if there is any responsive add-on for TablePress? If not, we’d love to help creating one.
Hi,
using setTimeout()
might actually work, but it should be easier to maybe change the dependencies of the loaded scripts, so that the script that adds the data-
attributes is executed first, before the FooTable script.
And yes, there is an Extension for Responsive Tables, which implements one common approach for responsiveness in tables: http://tablepress.org/extensions/responsive-tables/
Regards,
Tobias
Thread Starter
N2Clic
(@n2clic)
Thanks for the support. We actually got started today on a new extension based on FooTable. Hopefully we’ll have time to polish it this week and release it on the extend.
Hi,
very cool! I’m looking forward to checking it out!
Best wishes,
Tobias
Hey Tobias,
We just pushed v0.1.0 of the extension we’ve been working on this afternoon. There are very few FooTable data attributes supported right now but the mechanics was the most important. We’ll add more attributes later on.
Meanwhile, any feedback / suggestion are welcome. Here is the repo: https://github.com/ThemeAvenue/TablePress-FooTable
PS: Sorry for the username confusion, ThemeAvenue belongs to N2Clic, so we’re the same people 😉
Hi,
thanks for sharing that! Looks pretty solid! Great work!
Best wishes,
Tobias