-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
enhance pivot table element to be well formed for potential use with DataTables plugin #369
Conversation
This is a good idea in principle but the implementation is a bit strange... the |
I will send an update later this week...sorry I have been busy at work :) On Fri, Aug 7, 2015 at 1:31 AM, Nicolas Kruchten [email protected]
|
b84f4e7
to
738088c
Compare
@nicolaskruchten I have updated the PR. The main issue with using the DataTables Plugin with your PivotTable Plugin is that you have colspan and rowspan in the tbody tag. I added a To test I built a little app that initializes a table with the PivotTable Plugin Then I enhanced the table with the DataTables Plugin The final product is a basic DataTable with sortable columns. This should open the door for leveraging any available DataTables features (https://www.datatables.net/manual/api) in the PivotTable |
2ee2cfd
to
0abf765
Compare
…DataTables plugin
I'm OK with adding |
Are you referring to the "isDataTables" flag? That flag just removes any
|
Yes, that's what I'm referring to. I don't really like this approach, as the rowspan/colspan is the key feature of this renderer. IMO if we want a renderer that doesn't do this, we should write a new (much simpler) one, rather than adding options to this one. |
Understood. I may send another pull request for a new renderer then... May
|
ok :) |
@nicolaskruchten I was hoping to enhance the pivot table html element in order to leverage the DataTables jQuery plugin. However, since the table was missing a tbody element (http://legacy.datatables.net/usage/) the DataTables plugin was throwing an error.