ext radiogroup

1361 단어 ext
 

Ext.onReady(function () {

 


var radiogroup= new Ext.form.RadioGroup({
                fieldLabel : ' ',
                items : [{
                            boxLabel : ' ',
                            inputValue : "1",
                            name : "radiog",
                            checked : true
                        }, {
                            boxLabel : ' ',
                            name : "radiog",
                            inputValue : "2"
                        }]
            });

var _formpanel = new Ext.form.FormPanel({
        labelAlign : "right",
        labelWidth : 150,
        loadMask : true,
        frame : true,
        defaults : {
            width : 150
        },
     applyTo:Ext.getBody(),
        items : [radiogroup],
        buttonAlign : "center",
        buttons : [{
            text : " RadioGroup ",
            handler : function() {
                alert(_formpanel.getForm().getValues()["radiog"] );
            }
        }]
    });
   


});

좋은 웹페이지 즐겨찾기