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 {
238238 }
239239
240240 public onMultiSelectChange ( selectControl : TableSelectControl , selections : TableSelectControlOption [ ] ) : void {
241+ this . applySelections ( selectControl , selections ) ;
242+
241243 this . selectChange . emit ( {
242244 select : selectControl ,
243245 values : selections
244246 } ) ;
245247 this . diffSelections ( ) ;
246248 }
247249
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+
248256 public onSelectChange ( selectControl : TableSelectControl , selection : TableSelectControlOption ) : void {
249257 this . selectChange . emit ( {
250258 select : selectControl ,
You can’t perform that action at this time.
0 commit comments