打印版式

Class Ext.LoadMask

Package:Ext
Class:LoadMask
Extends:Object
Defined In:LoadMask.js
A simple utility class for generically masking elements while loading data. If the element being masked has an underlying Ext.data.Store, the masking will be automatically synchronized with the store's loading process and the mask element will be cached for reuse. For all other elements, this mask will replace the element's UpdateManager load indicator and will be destroyed after the initial load.

属性   -  方法   -  事件   -  设置选项

公共属性

属性 定义对象
  disabled : Boolean LoadMask
Read-only. True if the mask is currently disabled so that it will not be displayed (defaults to false)

公共方法

方法 定义对象
  LoadMask(Object config) LoadMask
Create a new LoadMask
  disable() : void LoadMask
Disables the mask to prevent it from being displayed
  enable() : void LoadMask
Enables the mask so that it can be displayed

公共事件

此类没有公共事件。

设置选项

设置选项 定义对象
  msg : String LoadMask
The text to display in a centered loading message box (defaults to 'Loading...')
  msgCls : String LoadMask
The CSS class to apply to the loading message element (defaults to "x-mask-loading")
  removeMask : Boolean LoadMask
True to create a single-use mask that is automatically destroyed after loading (useful for page loads), False to pers...

属性详情

disabled

public Boolean disabled
Read-only. True if the mask is currently disabled so that it will not be displayed (defaults to false)
This property is defined by LoadMask.

构造函数

LoadMask

public function LoadMask(Object config)
Create a new LoadMask
参数:
  • config : Object
    The config object

方法详情

disable

public function disable()
Disables the mask to prevent it from being displayed
参数:
  • 无。
返回:
  • void
This method is defined by LoadMask.

enable

public function enable()
Enables the mask so that it can be displayed
参数:
  • 无。
返回:
  • void
This method is defined by LoadMask.

设置详情

msg

msg : String
The text to display in a centered loading message box (defaults to 'Loading...')
This config option is defined by LoadMask.

msgCls

msgCls : String
The CSS class to apply to the loading message element (defaults to "x-mask-loading")
This config option is defined by LoadMask.

removeMask

removeMask : Boolean
True to create a single-use mask that is automatically destroyed after loading (useful for page loads), False to persist the mask element reference for multiple uses (e.g., for paged data widgets). Defaults to false.
This config option is defined by LoadMask.

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