File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
projects/components/src/table/controls Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -238,13 +238,21 @@ export class TableControlsComponent implements OnChanges {
238
238
}
239
239
240
240
public onMultiSelectChange ( selectControl : TableSelectControl , selections : TableSelectControlOption [ ] ) : void {
241
+ this . applySelections ( selectControl , selections ) ;
242
+
241
243
this . selectChange . emit ( {
242
244
select : selectControl ,
243
245
values : selections
244
246
} ) ;
245
247
this . diffSelections ( ) ;
246
248
}
247
249
250
+ private applySelections ( selectControl : TableSelectControl , selections : TableSelectControlOption [ ] ) : void {
251
+ selectControl . options . forEach (
252
+ option => ( option . applied = selections . find ( selection => isEqual ( selection , option ) ) !== undefined )
253
+ ) ;
254
+ }
255
+
248
256
public onSelectChange ( selectControl : TableSelectControl , selection : TableSelectControlOption ) : void {
249
257
this . selectChange . emit ( {
250
258
select : selectControl ,
You can’t perform that action at this time.
0 commit comments