angular-data-table
angular-data-table copied to clipboard
dynamic grouping/tree fix
Fix for #212
- In demo, sets group:true to 1 column (the code only accounts for this anyways at this time)
- pulled refreshTree, refreshGroup logic into its own method for calling on groupColumn || treeColumn change
- added a watch on the options.columns that updates group/tree for the table
- moved conditional scope.watches from the constructor to a method that gets reevaluated if columns ever change