0

カスタマイズされた ExtJs ファイルで、次のコードを見つけました。実際に次のコードで何をしているのか。

このコードは xtype.js ファイルに記述されており、jsp ページに含まれています。

Ext.Loader.setConfig({enabled: true});
Ext.Loader.setPath('Ext.ux', 'js/ext-ux');

Ext.require([
    'Ext.form.field.ComboBox'
]);

Ext.define('Ext.ux.UDComboBox', {
    extend: 'Ext.form.field.ComboBox',
    alias: 'widget.udComboBox',
    directArgs : false,
    skipValue : false,
    firstOptionDefault : false,
    forceSelection : true,
    typeAhead : true,
    queryMode : 'local',
    triggerAction : 'all',
    selectOnFocus : true,
    allowBlank : false,
    emptyText : '-Select One-',
    valueField : '',
    lastQuery : '', // This is used with store.filter function.
    returnAsObject : true,
    fieldStyle: 'background-image: none;',
    msgTarget:'side',
    hideTrigger:false,// if true hide the drop down icon
    skipFirstOption : false
});

私たちのファイルでは、コンボボックスを作成するためにxtype: 'udComboBox'.

4

1 に答える 1