Skip to main content

Dashboard Value Card

This section describes the BfmDashboardValueCardComponent component.

Usage​

If you need more customization, you need to import it in your module and use it in your template.

value-card.component.ts
import { BfmDashboardValueCardComponent } from "@celerofinancas/ui-reports";

@Component({
standalone: true,
selector: 'dashboard-value-card',
imports: [BfmDashboardValueCardComponent],
templateUrl: './value-card.component.html',
})
export class DashboardValueCardComponent {}

Then, in your template, you can use the component like this:

value-card.component.html
<bfm-dashboard-value-card
[enableColorFromValue]="true"
[linkButtonTooltip]="'Tooltip text'"
[loading]="false"
[showLinkButton]="true"
[sideTagType]="'tagType'"
[subtitle]="'Subtitle text'"
[title]="'Title text'"
[tooltip]="'Tooltip text'"
[value]="1000"
(linkButtonClick)="handleLinkButtonClick($event)"
/>

Inputs​

The BfmDashboardValueCardComponent component has the following inputs:

enableColorFromValue​

Whether to enable the colorFromValue directive to be applied to the value

TypeDefault
booleanfalse

linkButtonTooltip​

Link button tooltip

TypeDefault
string''

loading​

Loading state of the component

TypeDefault
booleanfalse

showLinkButton​

Whether to show the link button

TypeDefault
booleanfalse

sideTagType​

Type of the side tag

TypeDefault
string''

subtitle​

Subtitle text

TypeDefault
string''

title​

Title text

TypeDefault
string''

tooltip​

Tooltip text

TypeDefault
string''

value​

Value to be displayed

TypeDefault
anynull

Events​

The BfmDashboardValueCardComponent component has the following events:

linkButtonClick​

Triggered when the link button is clicked

Type
EventEmitter<any>