Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}),
notifySelectedAll: () => this.selectedAll.emit(),
notifyUnselectedAll: () => this.unselectedAll.emit(),
registerHeaderRowCheckbox: () => this._registerHeaderCheckbox(),
registerRowCheckboxes: () => this._registerRowCheckboxes(),
removeClassAtRowIndex: (rowIndex: number, className: string) =>
this.getRows()[rowIndex].getNativeElement().classList.remove(className),
setAttributeAtRowIndex: (rowIndex: number, attr: string, value: string) =>
this.getRows()[rowIndex].getNativeElement().setAttribute(attr, value),
setHeaderRowCheckboxChecked: (checked: boolean) => this._headerCheckbox!.checked = checked,
setHeaderRowCheckboxIndeterminate: (indeterminate: boolean) =>
this._headerCheckbox!.indeterminate = indeterminate,
setRowCheckboxCheckedAtIndex: (rowIndex: number, checked: boolean) =>
this.getRows()[rowIndex]._checkbox ? this.getRows()[rowIndex]._checkbox!.toggle(checked) : null
};
return new MDCDataTableFoundation(adapter);
}