Merge pull request #15411 from DaveWM/master

Angular formly - allow fieldTransform to be an array of functions
This commit is contained in:
Nathan Shively-Sanders
2017-03-27 08:02:16 -07:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
@@ -30,6 +30,7 @@ class FormConfig {
formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = angular.noop;
formlyConfig.extras.explicitAsync = true;
formlyConfig.extras.fieldTransform = angular.noop;
formlyConfig.extras.fieldTransform = [angular.noop];
formlyConfig.extras.getFieldId = angular.noop;
formlyConfig.extras.ngModelAttrsManipulatorPreferUnbound = true;
}
+3 -3
View File
@@ -1,4 +1,4 @@
// Type definitions for angular-formly 7.2.3
// Type definitions for angular-formly 7.2.4
// Project: https://github.com/formly-js/angular-formly
// Definitions by: Scott Hatcher <https://github.com/scatcher>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -44,7 +44,7 @@ declare namespace AngularFormly {
data?: {
[key: string]: any;
};
fieldTransform?: Function;
fieldTransform?: Function | Array<Function>;
formState?: Object;
removeChromeAutoComplete?: boolean;
resetModel?: Function;
@@ -580,7 +580,7 @@ declare namespace AngularFormly {
defaultHideDirective: string;
errorExistsAndShouldBeVisibleExpression: any;
getFieldId: Function;
fieldTransform: Function;
fieldTransform: Function | Array<Function>;
explicitAsync: boolean;
}