更新 widgets-form-factory.js
This commit is contained in:
parent
f252d72a1f
commit
a7f66e3b70
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user