arnedesmedt / vue-ads-table-tree

MIT License
125 stars 30 forks source link

Classes not working #36

Open sumitbhavra opened 5 years ago

sumitbhavra commented 5 years ago

Hi, I like this data table utility created by you using tailwind. I am having difficulty in styling it though.

1) How can I apply a similar style as you have applied and shown in js fiddle example? 2) My project is based on Vue and Tailwind. If I add classes as mentioned in GitHub docs none are being applied. Could you please guide. 3) How to use this with async data. On mounted, I get some data. I can load that one. How to get more data when users click the paginated next button?

It would be great if you can give another example and my apology to open an issue. I don't know where else I could have reached you.

I have attached a screenshot for your reference, this is how it is looking right now. Looking forward to hearing from you.

Cheers! Sumit

Screen Shot 2019-10-06 at 12 33 17 PM
arnedesmedt commented 5 years ago

Hi,

  1. Styling can be added as described in the styling section: https://github.com/arnedesmedt/vue-ads-table-tree#styling
  2. Are you sure that your css file is loaded? I think this is the main problem: Check the resources panel on the left of the js fiddle example and there you will find all the loaded resources.
  3. If you want to use paginated data. You need to know the total number of main rows. If you want to go to the next page and not all those rows are loaded, the call-rows function is called.

Greetings, Arne