nnnjjj123
2020-11-17 1b2c1edb61190eeb19f465ff031eaa3b2a1b8dbc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
define([
    'dojo/_base/declare',
    './ConfigForm',
    'dojo/text!./templates/Selection.html',
    'dgrid/Selection',
    // for template
    'dijit/form/FilteringSelect',
    'dijit/form/RadioButton'
], function (declare, ConfigForm, template, Selection) {
    return declare(ConfigForm, {
        templateString: template,
        defaultsObject: Selection.prototype,
 
        _clearField: function (event) {
            var fieldName = event.target.getAttribute('data-field-name');
            var formValue = this.get('value');
 
            if (!fieldName) {
                return;
            }
 
            if (fieldName in formValue) {
                formValue[fieldName] = '';
                this.set('value', formValue);
            }
        }
    });
});