UNPKG

svogv

Version:

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

21 lines (20 loc) 639 B
/** * The TemplateHint decorator. * * One can define the way a property gets rendered. * Currently supported: * - TextArea * - Calendar * - Range * - Number * - Text * * The Calendar creates Date-field. However, in casde of a datatype Date the date field will be created anyway. * * @param template The Name that appears in form fields as a watermark. * @param params Depending of template some additional values as a dictionary. */ export declare function TemplateHint(template: string, params?: Array<{ key: string; value: any; }>): (target: object, name: string) => void;