Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onRowClickEvent($event: MouseEvent, index: number): void {
$event.preventDefault();
this.table.apiEvent({
type: API.toggleRowIndex,
value: index,
});
if (this.toggledRows.has(index)) {
this.toggledRows.delete(index);
} else {
this.toggledRows.add(index);
}
}
}
onRowClickEvent($event: MouseEvent, index: number): void {
$event.preventDefault();
this.table.apiEvent({
type: API.toggleRowIndex,
value: index,
});
if (this.toggledRows.has(index)) {
this.toggledRows.delete(index);
} else {
this.toggledRows.add(index);
}
}
}
onRowClickEvent($event: MouseEvent, index: number): void {
$event.preventDefault();
this.table.apiEvent({
type: API.toggleRowIndex,
value: index,
});
if (this.toggledRows.has(index)) {
this.toggledRows.delete(index);
} else {
this.toggledRows.add(index);
}
}
}