svogv
Version:
A decorator based approach for model driven forms, including an advanced DataGrid and a TreeView component.
9 lines (8 loc) • 307 B
TypeScript
/**
* The maxlength decorator assures that a string field contains not more than a number of characters.
*
* @param len: the maximum length.
* @param msg: A custom message.
*
*/
export declare function MaxLength(len: number, msg?: string): (target: object, property: string | symbol) => void;