UNPKG

@nova-ui/bits

Version:

SolarWinds Nova Framework

31 lines (30 loc) 809 B
import { PipeTransform } from "@angular/core"; import { ITimeframe } from "./public-api"; import * as i0 from "@angular/core"; /** * Pipe used for formatting ITimeframe values * * __Usage :__ * * value | timeFrame:formatString * * __Parameters :__ * * value - value to be converted * * momentFormat - Optional string of format tokens * * __Example :__ * * <code>{{ myTimeFrame | timeFrame }}</code> * * or * * <code>{{ myTimeFrame | timeFrame: "MMMM Do YYYY, h:mm:ss a" }}</code> * */ export declare class TimeFrameFormatPipe implements PipeTransform { transform(timeFrame: ITimeframe, momentFormat?: string): string; static ɵfac: i0.ɵɵFactoryDeclaration<TimeFrameFormatPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<TimeFrameFormatPipe, "timeFrame", false>; }