更新 widgets-form-factory.js

This commit is contained in:
钟进 2020-07-10 06:06:38 +00:00
parent f252d72a1f
commit a7f66e3b70

View File

@ -17,6 +17,17 @@ var dataMap = {
});
}
},
formula_mini: {
labelTranslationKey: 'editor.widgets.widgets-form.type.formula',
iconTemplate: require('builder/editor/widgets/widget-icon-formula.tpl'),
Class: require('./schema/widgets-form-formula-schema-model'),
checkIfValid: function (querySchemaModel) {
return querySchemaModel.columnsCollection.any(function (m) {
return m.get('type') === 'number';
});
}
},
histogram: {
labelTranslationKey: 'editor.widgets.widgets-form.type.histogram',
iconTemplate: require('builder/editor/widgets/widget-icon-histogram.tpl'),