This commit is contained in:
Yuri Kuznetsov
2025-08-08 10:52:25 +03:00
parent 0975532b9c
commit d32eea0e8a
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -54,7 +54,7 @@ import DefaultValueProvider from 'helpers/model/default-value-provider';
*
* @typedef module:model~defs
* @type {Object}
* @property {Object.<string, module:model~fieldDefs>} [fields] Fields.
* @property {Object.<string, module:model~fieldDefs & Record>} [fields] Fields.
* @property {Object.<string, Object.<string, *>>} [links] Links.
*/
@@ -62,7 +62,7 @@ import DefaultValueProvider from 'helpers/model/default-value-provider';
* Field definitions.
*
* @typedef module:model~fieldDefs
* @type {Object & Record}
* @type {Object}
* @property {string} type A type.
*/
@@ -645,6 +645,16 @@ class FieldManagerEditView extends View {
}
}
/**
* @private
* @param {string|null} type
* @param {string} name
* @param {boolean|null} readOnly
* @param {Record} params
* @param {Record} [options]
* @param {function} [callback]
* @return {Promise<Bull.View>}
*/
createFieldView(type, name, readOnly, params, options, callback) {
const viewName = (params || {}).view || this.getFieldManager().getViewName(type);