ExtJs 동적 생성 확인란

1676 단어 ExtJs
var old_value = Ext.get("fgzr_select").getValue() 
if(old_value == ""){
    document.getElementById("fgzr_select").value = value;
}else{
    document.getElementById("fgzr_select").value = old_value + ";" + value;
}
var _checkbox=new  Ext.form.Checkbox({   
            id:"fgzr_"+value,               
    name:"fgzr_check",
    //labelSepartor: ":",
    labelSeparator:'',
    style:"display:none;",
    boxLabel : value,                  
    inputValue : value
});
/*if(result[i].tjzdbm=='OD_RANGE'){//OD 
    _checkbox.checked=true;
}*/
Ext.getCmp('fgzr_select_field').add(_checkbox);
Ext.getCmp('fgzr_select_field').doLayout();

좋은 웹페이지 즐겨찾기