UNPKG

svogv

Version:

A decorator based approach for model driven forms, including an advanced DataGrid and a TreeView component.

17 lines (16 loc) 754 B
import { Pipe } from '@angular/core'; /** * The FormatPipe decorator. Provide the name of a Pipe that's being used by the * dynamic pipe formatter. Hence, the form does not need to apply forms manually. * The reason is that you may create forms automatically and hence can't write * actual Pipes somewhere. This applies especially if you create a table and loop * through properties. * * @param pipe The name of the pipe's type. * @param pipeParams The custom pipe's parameters. This is optional and can be omitted. * * @example * @FormatPipe(SomePipe) * public string formattedProperty = ''; */ export declare function FormatPipe(pipe: Pipe, pipeParams?: any[]): (target: object, property: string | symbol) => void;