isteven / angular-multi-select

A multi select dropdown directive for AngularJS. Allows you to use HTML tags and CSS in the data. Requires only AngularJS and nothing else.
isteven.github.io/angular-multi-select
MIT License
1.08k stars 518 forks source link

Grouping #571

Open kiranmahale7 opened 5 years ago

kiranmahale7 commented 5 years ago

Can grouping support fixed # of columns(coming from DB). Otherwise it is one more layer of parsing we need to take care. / Data Table : Not working/ $scope.PanelData.gpList = [ { Key: 'People', Value: null, msGroup: true }, // Start a group labled 'People' { Key: 'Person A', Value: 'Person Desc A', msGroup: false }, // Person A. { Key: 'Person B', Value: 'Person Desc B', msGroup: false }, // Person B { Key: null, Value: null, msGroup: false }, { Key: 'Animal', Value: null, msGroup: true }, // Start a group labled 'Animal' { Key: 'Animal A', Value: 'Animal Desc A', msGroup: false }, // Animal A. { Key: 'Animal B', Value: 'Animal Desc B', msGroup: false }, // Animal B { Key: null, Value: null, msGroup: false } // Close 'Animal' group ];

                /*  Working sample
                 * $scope.PanelData.gpList = [
                    { Key: 'People', Value: null, msGroup: true },  // Start a group labled 'People'
                    { Key: 'Person A', Value: 'Person Desc A' },      // Person A. 
                    { Key: 'Person B', Value: 'Person Desc B' },      // Person B
                    { msGroup: false },
                    { Key: 'Animal', Value: null, msGroup: true },  // Start a group labled 'Animal'
                    { Key: 'Animal A', Value: 'Animal Desc A' },      // Animal A. 
                    { Key: 'Animal B', Value: 'Animal Desc B' },      // Animal B
                    { msGroup: false }     // Close 'Animal' group
                ];*/