Skip to content

Commit

Permalink
Angular Formly IFormlyConfig added missing properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
nkovacic committed Jan 8, 2016
1 parent 4639f12 commit 1fed7c6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
9 changes: 9 additions & 0 deletions angular-formly/angular-formly-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ class FormConfig {
name: 'customInput',
extends: 'input'
});

formlyConfig.disableWarnings = true;
formlyConfig.templateManipulators = undefined;

formlyConfig.extras.apiCheckInstance = null;
formlyConfig.extras.defaultHideDirective = 'ng-if';
formlyConfig.extras.disableNgModelAttrsManipulator = true;
formlyConfig.extras.errorExistsAndShouldBeVisibleExpression = angular.noop;
formlyConfig.extras.explicitAsync = true;
}
}

Expand Down
16 changes: 15 additions & 1 deletion angular-formly/angular-formly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,10 +558,24 @@ declare module AngularFormly {
validateOptions?: Function;
}

interface IFormlyConfigExtras {
disableNgModelAttrsManipulator: boolean;
apiCheckInstance: any;
ngModelAttrsManipulatorPreferUnbound: boolean;
removeChromeAutoComplete: boolean;
defaultHideDirective: string;
errorExistsAndShouldBeVisibleExpression: any;
getFieldId: Function;
fieldTransform: Function;
explicitAsync: boolean;
}

interface IFormlyConfig {
disableWarnings: boolean;
extras: IFormlyConfigExtras;
setType(typeOptions: ITypeOptions): void;
setWrapper(wrapperOptions: IWrapperOptions): void;

templateManipulators: ITemplateManipulators;
}

interface ITemplateScopeOptions {
Expand Down

0 comments on commit 1fed7c6

Please sign in to comment.