What I’m trying to do:
I’m trying to use the Tabulator component. What I’ve tried and what’s not working:
I’ve created a sample project with a basic Tabulator and the 3rd party dependency. I’ve tried replicating the example provided with the dependency, which seems to be able to simply set the data (code below) and it works. I assume the Tabulator autoheader feature is used in this example.
You know…I cloned that thing like 8 times before your message. What I didn’t realize is that it was cloning two projects…I suppose one is the dependency. I kept opening the first one that appeared in the list, which was the dependency and not the example! Sorry about that
Seeing this, and seeing that I could change any of the column names to something different and they’d show up properly when I ran it, it threw me off the trail. I saw that Tabulator has an autoheader feature and suppose it was using that. However, I replicated the example (albeit without the _CleanCols and _Helpers), but it wouldn’t work. Still a little confused about that, but now that I know two projects were cloned, I’ll go study the true example
Thank you. Finally I was able to get data populated in Tabulator after few trail & errors. The functionality is very helpful. Would you know if there is easy way to format the tabulator table? I would like to edit/set background colors for header and rows, font size for the table, font colors for headers/rows etc. I tried looking at their website and searched thru Anvil Forums, but couldn’t figure it.
That’s not an example, it’s just a dummy startup form for the dependency because anvil sometimes complains if there’s not a startup form. But yes it uses auto_columns for convenience.
Not really - For individual rows you can use the row_formatter event handler.
In the official example you can see this being applied to change the row background based on the gender.
For other styling you’ll probably have to go into the CSS and look at the tabulator documentation for styling.