打印版式

Class Ext.dd.ScrollManager

Package:Ext.dd
Class:ScrollManager
Extends:Object
Defined In:ScrollManager.js
Provides automatic scrolling of overflow regions in the page during drag operations.

Note: This class uses "Point Mode" and is untested in "Intersect Mode".

This class is a singleton and cannot be created directly.

属性   -  方法   -  事件

公共属性

属性 定义对象
  animDuration : Number ScrollManager
The animation duration in seconds - MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)
  animate : Boolean ScrollManager
True to animate the scroll (defaults to true)
  frequency : Number ScrollManager
The frequency of scrolls in milliseconds (defaults to 500)
  increment : Number ScrollManager
The number of pixels to scroll in each scroll increment (defaults to 50)
  thresh : Number ScrollManager
The number of pixels from the edge of a container the pointer needs to be to trigger scrolling (defaults to 25)

公共方法

方法 定义对象
  refreshCache() : void ScrollManager
Manually trigger a cache refresh.
  register(String/HTMLElement/Element/Array el) : void ScrollManager
Registers new overflow element(s) to auto scroll
  unregister(String/HTMLElement/Element/Array el) : void ScrollManager
Unregisters overflow element(s) so they are no longer scrolled

公共事件

此类没有公共事件。

属性详情

animDuration

public Number animDuration
The animation duration in seconds - MUST BE less than Ext.dd.ScrollManager.frequency! (defaults to .4)
This property is defined by ScrollManager.

animate

public Boolean animate
True to animate the scroll (defaults to true)
This property is defined by ScrollManager.

frequency

public Number frequency
The frequency of scrolls in milliseconds (defaults to 500)
This property is defined by ScrollManager.

increment

public Number increment
The number of pixels to scroll in each scroll increment (defaults to 50)
This property is defined by ScrollManager.

thresh

public Number thresh
The number of pixels from the edge of a container the pointer needs to be to trigger scrolling (defaults to 25)
This property is defined by ScrollManager.

方法详情

refreshCache

public function refreshCache()
Manually trigger a cache refresh.
参数:
  • 无。
返回:
  • void
This method is defined by ScrollManager.

register

public function register(String/HTMLElement/Element/Array el)
Registers new overflow element(s) to auto scroll
参数:
  • el : String/HTMLElement/Element/Array
    The id of or the element to be scrolled or an array of either
返回:
  • void
This method is defined by ScrollManager.

unregister

public function unregister(String/HTMLElement/Element/Array el)
Unregisters overflow element(s) so they are no longer scrolled
参数:
  • el : String/HTMLElement/Element/Array
    The id of or the element to be removed or an array of either
返回:
  • void
This method is defined by ScrollManager.

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