@angular/material/list#MatSelectionListChange TypeScript Examples
The following examples show how to use
@angular/material/list#MatSelectionListChange.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: options-addon-section.component.ts From WowUp with GNU General Public License v3.0 | 6 votes |
public async onProviderStateSelectionChange(event: MatSelectionListChange): Promise<void> {
for (const option of event.options) {
const providerName: AddonProviderType = option.value;
if (option.selected && providerName === ADDON_PROVIDER_WAGO) {
this.onWagoEnable(option);
} else {
await this._addonProviderService.setProviderEnabled(providerName, option.selected);
}
}
}
Example #2
Source File: facet.component.ts From cli with Apache License 2.0 | 5 votes |
public selectionChange(change: MatSelectionListChange) {
change.options.forEach((option) => {
this.headlessFacet.toggleSelect(option.value);
});
}