wfw-ngx-formly
Version:
ngx-formly is an Angular 2 module which has a Components to help customize and render JavaScript/JSON configured forms. The formly-form Component and the FormlyConfig service are very powerful and bring unmatched maintainability to your application's form
25 lines (24 loc) • 1.62 kB
TypeScript
import { FormlyFieldConfig } from './core';
export declare function getFieldId(formId: string, field: FormlyFieldConfig, index: string | number): string;
export declare function getKeyPath(field: {
key?: string | string[];
fieldGroup?: any;
fieldArray?: any;
}): (string | number)[];
export declare const FORMLY_VALIDATORS: string[];
export declare function getFieldModel(model: any, field: FormlyFieldConfig, constructEmptyObjects: boolean): any;
export declare function assignModelToFields(fields: FormlyFieldConfig[], model: any): void;
export declare function assignModelValue(model: any, path: string | (string | number)[], value: any): void;
export declare function getValueForKey(model: any, path: string | (string | number)[]): any;
export declare function getKey(controlKey: string, actualKey: string): string;
export declare function reverseDeepMerge(dest: any, ...args: any[]): any;
export declare function isNullOrUndefined(value: any): boolean;
export declare function isUndefined(value: any): boolean;
export declare function isBlankString(value: any): boolean;
export declare function isFunction(value: any): boolean;
export declare function objAndSameType(obj1: any, obj2: any): boolean;
export declare function isObject(x: any): boolean;
export declare function clone(value: any): any;
export declare function evalStringExpression(expression: string, argNames: string[]): any;
export declare function evalExpressionValueSetter(expression: string, argNames: string[]): any;
export declare function evalExpression(expression: string | Function | boolean, thisArg: any, argVal: any[]): any;