@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
19 lines (18 loc) • 742 B
TypeScript
import { PipeTransform } from "@angular/core";
import { UnitConversionService, UnitOption } from "@nova-ui/bits";
/**
* Pipe for transforming large values to their abbreviated counterparts.
* Conversions are applied for values 10000 or greater
*/
export declare class DashboardUnitConversionPipe implements PipeTransform {
private unitConversionService;
constructor(unitConversionService: UnitConversionService);
/**
* Transforms a large number value to its abbreviated counterpart
*
* @param value The value to convert
*
* @returns The string representation of the converted value
*/
transform: (value: string | number | undefined, units?: UnitOption, defaultThreshold?: number) => string;
}