coreui-angular-ex
Version:
CoreUI Components Library for Angular
40 lines (34 loc) • 920 B
text/typescript
import { Component, Input } from '@angular/core';
import { NgClass, NgIf } from '@angular/common';
import { CardBodyComponent, CardComponent } from '../../card';
({
selector: 'c-widget-stat-e',
templateUrl: './widget-stat-e.component.html',
exportAs: 'cWidgetStatE',
standalone: true,
imports: [CardBodyComponent, NgIf, NgClass]
})
export class WidgetStatEComponent extends CardComponent {
constructor() {
super();
}
/**
* Title of the widget to display
* @type string
*/
() title?: string;
/**
* Value for your widget to display
* @type string | number
*/
() value?: string | number;
get titleClasses() {
return {
'text-medium-emphasis': !this.textColor,
'small': true,
'text-uppercase': true,
'fw-semibold': true,
[`text-${this.textColor}`]: !!this.textColor
};
}
}