Study/Ext JS2011. 5. 20. 14:51
출처 : http://stackoverflow.com/questions/3488228/config-sample-in-extjs


var configObject = {
   xtype
: 'label',
   width
: 50,
   text  
: 'some Text'
}
//create a panel
new Ext.Panel({
    id
: 'someID',
    items
: [
    configObject
,
   
{
       xtype
: 'textfield'
   
},
    configObject
,
   
{
      xtype
: 'radio'<br>
   
}
   
]
})

Or:

new Ext.form.Label(configObject);
Posted by 굥쓰
Study/Ext JS2011. 5. 3. 09:42
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 11:34
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 11:33
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 11:25
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 11:23
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 11:17
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 11:01
Posted by 굥쓰
Study/Ext JS2011. 4. 28. 10:27
Posted by 굥쓰
Study/Ext JS2011. 4. 25. 20:21




        // 저장소 데이터 가져오기
        this.store = SGP.AUTH.Data.connectionLogStore(this.url_list, this.pagesize);

        /**
        * Paging 시 store 가 로드되기 전에 검색 관련 params 를 설정.
        * @author 김기용
        * @since 2011.04.25
        */
        this.store.on({
            'beforeload': {
                fn: function (store, options) {
                    method = 'UserID';
                    keyword = this.userID;

                    // 검색 기간
                    var startDate = Ext.get("StartDate").dom.value;
                    var endDate = Ext.get("EndDate").dom.value;
                    var where = startDate + "::" + endDate;

                    if (where == "::") {
                        where = '';
                    }

                    store.baseParam = { 'method':'UserID', 'keyword':this.userID, 'where': where };
                }
            }
        });

Posted by 굥쓰