打印版式

Class Ext.KeyNav

Package:Ext
Class:KeyNav
Extends:Object
Defined In:KeyNav.js
Provides a convenient wrapper for normalized keyboard navigation. KeyNav allows you to bind navigation keys to function calls that will get called when the keys are pressed.
Usage:
var nav = new Ext.KeyNav("my-element", {
    "left" : function(e){
        this.moveLeft(e.ctrlKey);
    },
    "right" : function(e){
        this.moveRight(e.ctrlKey);
    },
    "enter" : function(e){
        this.save();
    },
    scope : this
});

属性   -  方法   -  事件

公共属性

此类没有公共属性。

公共方法

方法 定义对象
  KeyNav(String/HTMLElement/Ext.Element el, Object config) KeyNav
  disable() : void KeyNav
Disable this KeyNav
  enable() : void KeyNav
Enable this KeyNav

公共事件

此类没有公共事件。

构造函数

KeyNav

public function KeyNav(String/HTMLElement/Ext.Element el, Object config)
参数:
  • el : String/HTMLElement/Ext.Element
    The element to bind to
  • config : Object
    The config

方法详情

disable

public function disable()
Disable this KeyNav
参数:
  • 无。
返回:
  • void
This method is defined by KeyNav.

enable

public function enable()
Enable this KeyNav
参数:
  • 无。
返回:
  • void
This method is defined by KeyNav.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.