extjs checkboxgroup 값을 초기화하는 코드

542 단어
 
  
Ext.override(Ext.form.CheckboxGroup,{

setValueForItem : function(val){ //
val = ","+val+","
this.items.each(function(item) {
if (val.indexOf(item.inputValue) > -1) {
item.setValue(true);
} else {
item.setValue(false);
}
});
}
,clearValueForItem:function(){ //
this.items.each(function(item) {
item.setValue(false);
});
}
});

좋은 웹페이지 즐겨찾기