10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9cc821 commit 88a962fCopy full SHA for 88a962f
projects/coreui-angular/src/lib/table/table-color.directive.ts
@@ -13,11 +13,12 @@ export class TableColorDirective {
13
* Use contextual color for tables, table rows or individual cells.
14
* @return Colors
15
*/
16
- readonly color = input<Colors>(undefined, { alias: 'cTableColor' });
+ readonly color = input<Colors | undefined>(undefined, { alias: 'cTableColor' });
17
18
readonly hostClasses = computed(() => {
19
+ const color = this.color();
20
return {
- [`table-${this.color()}`]: !!this.color()
21
+ [`table-${color}`]: !!color
22
} as Record<string, boolean>;
23
});
24
}
0 commit comments