You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These features are definitely on the roadmap. However I have issues with each one of these :
Filters : I feel like the select list could be reusing another component (like found in those vue-multiselect components), however I didn't find a good open source component for this. Also a modal component could be reused. Finally, not sure if a modal is the best choice here, a popover would feel better integrated.
Heattable : this is not a priority but would be a nice addition
Multiple data sources : I'm not sure if this should be managed directly by the component. It seems easier to let the user make his own "data source picker" that changes the data attribute provided to the pivot table component
The sorting is indeed tricky, especially if you have multiple levels of headers. Each header has a sort parameter which allows to sort the header values.
In your case you want to sort the column values when clicking on a row header. So you would have to set a sort function for your rows (even if you are sorting by selecting a column). The sort function needs to know which column to use (perhaps stored in a vue data property, set by clicking on column headers), and to access the table value for this column in order to return 1 or -1.
I think it would be nice to allow this out of the box to avoid all these tricks, but I need time :)
Added a few features : multiple data sources, heattable, filters.
but could not figure out how to sort by one of the columns instead of the default sort.
I know it around here https://github.com/MarketConnect/vue-pivot-table/blob/master/src/PivotTable.vue#L156, but how? :-)
so that's just a request for enhancement.
Otherwise, this is a great vue component.
thank you
The text was updated successfully, but these errors were encountered: