Extjs 封装多选下拉列表

来源:互联网 发布:数据挖掘 神经网络 编辑:程序博客网 时间:2024/06/05 07:40

封装的extjs多选下拉列表


getValue:function(){

              var value= this.callParent();
 if(value===text) {
//               value = allValueArray;
  value = '';
              }
              if (Ext.isArray( value )){
                      return value.join();
              }
              return value;
    },
    validate:function() {  
        var errs =[];   
        var val = this.getRawValue(); 
        if (this.store.data && this.store.data.items.length>0){  
            if (this.xtype=="DictMultiComboBox"){  
                var ssRawValues=[];  
                if (val){ 
                    if ((this.id==="projectList")||val.indexOf(", ")>0){  
                        ssRawValues=val.split(", ");  
                    }  
                    else{  
                        ssRawValues=val.split(",");  
                    }  
                }  
0 0
原创粉丝点击