coreui-angular-ex
Version:
CoreUI Components Library for Angular
22 lines (18 loc) • 482 B
text/typescript
import { booleanAttribute, Directive, HostBinding, Input } from '@angular/core';
({
selector: '[cTableActive]',
standalone: true
})
export class TableActiveDirective {
/**
* Highlight a table row or cell
* @type boolean
*/
({ alias: 'cTableActive', transform: booleanAttribute }) active: string | boolean = false;
('class')
get hostClasses(): any {
return {
'table-active': this.active
};
}
}