@ngx-formly/bootstrap
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
27 lines (26 loc) • 1.76 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/
var TemplateAddons = /** @class */ (function () {
function TemplateAddons() {
}
/**
* @param {?} fc
* @return {?}
*/
TemplateAddons.prototype.run = /**
* @param {?} fc
* @return {?}
*/
function (fc) {
fc.templateManipulators.postWrapper.push(function (field) {
if (field && field.templateOptions && (field.templateOptions["addonLeft"] || field.templateOptions["addonRight"])) {
return 'addons';
}
});
};
return TemplateAddons;
}());
export { TemplateAddons };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkb24uanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWZvcm1seS9ib290c3RyYXAvIiwic291cmNlcyI6WyJsaWIvcnVuL2FkZG9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFFQSxJQUFBOzs7Ozs7O0lBQ0UsNEJBQUc7Ozs7SUFBSCxVQUFJLEVBQWdCO1FBQ2xCLEVBQUUsQ0FBQyxvQkFBb0IsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLFVBQUMsS0FBSztZQUM3QyxJQUFJLEtBQUssSUFBSSxLQUFLLENBQUMsZUFBZSxJQUFJLENBQUMsS0FBSyxDQUFDLGVBQWUsaUJBQWMsS0FBSyxDQUFDLGVBQWUsY0FBVyxDQUFDLEVBQUU7Z0JBQzNHLE9BQU8sUUFBUSxDQUFDO2FBQ2pCO1NBQ0YsQ0FBQyxDQUFDO0tBQ0o7eUJBVEg7SUFVQyxDQUFBO0FBUkQsMEJBUUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGb3JtbHlDb25maWcgfSBmcm9tICdAbmd4LWZvcm1seS9jb3JlJzt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