2009년 3월 6일 금요일

Ext.form.TextField 이벤트(event)처리

txt_qty = new Ext.form.TextField({
                id    : Ext.id(),
                width : 30,
                height: 15
                ,enableKeyEvents: true
                ,onBlue: "javascript:alert('x')"
    });
    txt_qty.on ({
        keyup : {
            fn: function(o,e){
                alert( 'up'+ o.getValue() )
            }
        }
    })


keyup, keydown event는 "enableEeyEvents"가 반듯이 true로 설정 되어 있어야 한다.

댓글 없음:

댓글 쓰기