- 浏览: 94882 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
assasszt:
写的很透彻,厉害!能不能问个 问题:cookie 应该是浏览器 ...
Tomcat之Session和Cookie大揭密 -
赵武艺:
有时间把全部代码贴出来看看,只看这个看不懂?
Ajax请求,利用JFreeChart,页面无刷新画带“map”的图 -
e_soft:
解决办法:
拔了网线就好了,具体什么原因正在查找.
我也在 ...
MyEclipse开发JSP页面假死问题解决办法
Class Ext.Element
Package: | Ext |
Defined In: | Element.js |
Class: | Element |
Subclasses: | Layer |
Extends: | Object |
Usage:
// by id
var
el = Ext.get("my-div"
);
// by DOM element reference
var
el = Ext.get(myDivElement);
Animations
Many of the functions for manipulating an element have an optional "animate" parameter. The animate parameter should either be a boolean (true) or an object literal with animation options. Note that the supported Element animation options are a subset of the Ext.Fx animation options specific to Fx effects. The Element animation options are:
Option Default Description --------- -------- --------------------------------------------- duration .35 The duration of the animation in seconds easing easeOut The easing method callback none A function to execute when the anim completes scope this The scope (this) of the callback functionAlso, the Anim object being used for the animation will be set on your options object as "anim", which allows you to stop or manipulate the animation. Here's an example:
var el = Ext.get("my-div"
);
// no animation
el.setWidth(100);
// default
animation
el.setWidth(100, true);
// animation with
some options set
el.setWidth(100, {
duration: 1,
callback: this
.foo,
scope: this
});
// using the "anim"
property to get the Anim object
var
opt = {
duration: 1,
callback: this
.foo,
scope: this
};
el.setWidth(100, opt);
...
if
(opt.anim.isAnimated()){
opt.anim.stop();
}
Composite (Collections of) Elements
For working with collections of Elements, see Ext.CompositeElement
Public Properties
Public Methods
Element
( String/HTMLElement element
, [Boolean forceNew
]
)
Create a new Element directly.
Create a new Element directly.
Parameters:
|
Element | |
Element.fly
( String/HTMLElement el
, [String named
]
) : Element
<static> Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a...
<static> Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element - the dom node can be overwritten by other code.
Parameters:
|
Element | |
Element.get
( Mixed el
) : Element
<static> Static method to retrieve Ext.Element objects. This method does not retrieve Components. This method r...
<static> Static method to retrieve Ext.Element objects.
This method does not retrieve Component s. This method retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by its ID, use Ext.ComponentMgr.get . Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM.
Parameters:
|
Element | |
addClass
( String/Array className
) : Ext.Element
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
Parameters:
|
Element | |
addClassOnClick
( String className
) : Ext.Element
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
Parameters:
|
Element | |
addClassOnFocus
( String className
) : Ext.Element
Sets up event handlers to add and remove a css class when this element has the focus
Sets up event handlers to add and remove a css class when this element has the focus
Parameters:
|
Element | |
addClassOnOver
( String className
) : Ext.Element
Sets up event handlers to add and remove a css class when the mouse is over this element
Sets up event handlers to add and remove a css class when the mouse is over this element
Parameters:
|
Element | |
addKeyListener
( Number/Array/Object/String key
, Function fn
, [Object scope
]
) : Ext.KeyMap
Convenience method for constructing a KeyMap
Convenience method for constructing a KeyMap
Parameters:
|
Element | |
addKeyMap
( Object config
) : Ext.KeyMap
Creates a KeyMap for this element
Creates a KeyMap for this element
Parameters:
|
Element | |
addListener
( String eventName
, Function fn
, [Object scope
]
, [Object options
]
) : void
Appends an event handler to this element. The shorthand version on
is equivalent.
Appends an event handler to this element. The shorthand version on
is equivalent.
Parameters:
|
Element | |
alignTo
( Mixed element
, String position
, [Array offsets
]
, [Boolean/Object animate
]
) : Ext.Element
Aligns this element with another element relative to the specified anchor points. If the other element is the documen...
Aligns this element with another element relative to the specified anchor points. If the other element is the document it aligns it to the viewport. The position parameter is optional, and can be specified in any one of the following formats:
Value Description ----- ----------------------------- tl The top left corner (default) t The center of the top edge tr The top right corner l The center of the left edge c In the center of the element r The center of the right edge bl The bottom left corner b The center of the bottom edge br The bottom right cornerExample Usage:
Parameters:
|
Element | |
anchorTo
( Mixed element
, String position
, [Array offsets
]
, [Boolean/Object animate
]
, [Boolean/Number monitorScroll
]
, Function callback
) : Ext.Element
Anchors an element to another element and realigns it when the window is resized.
Anchors an element to another element and realigns it when the window is resized.
Parameters:
|
Element | |
animate
( Object args
, [Float duration
]
, [Function onComplete
]
, [String easing
]
, [String animType
]
) : Ext.Element
Perform animation on this element.
Perform animation on this element.
Parameters:
|
Element | |
appendChild
( String/HTMLElement/Array/Element/CompositeElement el
) : Ext.Element
Appends the passed element(s) to this element
Appends the passed element(s) to this element
Parameters:
|
Element | |
appendTo
( Mixed el
) : Ext.Element
Appends this element to the passed element
Appends this element to the passed element
Parameters:
|
Element | |
applyStyles
( String/Object/Function styles
) : Ext.Element
More flexible version of setStyle
for setting style properties.
More flexible version of setStyle
for setting style properties.
Parameters:
|
Element | |
autoHeight
( [Boolean animate
]
, [Float duration
]
, [Function onComplete
]
, [String easing
]
) : Ext.Element
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new hei...
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new height may not be available immediately.
Parameters:
|
Element | |
blur
() : Ext.Element
Tries to blur the element. Any exceptions are caught and ignored.
Tries to blur the element. Any exceptions are caught and ignored.
Parameters:
|
Element | |
boxWrap
( [String class
]
) : Ext.Element
Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradie...
Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradient background, rounded corners and a 4-way shadow. Example usage:
Parameters:
|
Element | |
center
( [Mixed centerIn
]
) : void
Centers the Element in either the viewport, or another Element.
Centers the Element in either the viewport, or another Element.
Parameters:
|
Element | |
child
( String selector
, [Boolean returnDom
]
) : HTMLElement/Ext.Element
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not cont...
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).
Parameters:
|
Element | |
clean
( [Boolean forceReclean
]
) : void
Removes worthless text nodes
Removes worthless text nodes
Parameters:
|
Element | |
clearOpacity
() : Ext.Element
Clears any opacity settings from this element. Required in some cases for IE.
Clears any opacity settings from this element. Required in some cases for IE.
Parameters:
|
Element | |
clearPositioning
( [String value
]
) : Ext.Element
Clear positioning back to the default when the document was loaded
Clear positioning back to the default when the document was loaded
Parameters:
|
Element | |
clip () : Ext.Element | Element | |
contains
( HTMLElement/String el
) : Boolean
Returns true if this element is an ancestor of the passed element
Returns true if this element is an ancestor of the passed element
Parameters:
|
Element | |
createChild
( Object config
, [HTMLElement insertBefore
]
, [Boolean returnDom
]
) : Ext.Element
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.
Parameters:
|
Element | |
createProxy
( String/Object config
, [String/HTMLElement renderTo
]
, [Boolean matchBox
]
) : Ext.Element
Creates a proxy element of this element
Creates a proxy element of this element
Parameters:
|
Element | |
createShim
() : Ext.Element
Creates an iframe shim for this element to keep selects and other windowed objects from showing through.
Creates an iframe shim for this element to keep selects and other windowed objects from showing through.
Parameters:
|
Element | |
down
( String selector
, [Boolean returnDom
]
) : HTMLElement/Ext.Element
Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).
Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).
Parameters:
|
Element | |
enableDisplayMode
( [String display
]
) : Ext.Element
Convenience method for setVisibilityMode(Element.DISPLAY)
Convenience method for setVisibilityMode(Element.DISPLAY)
Parameters:
|
Element | |
findParent
( String selector
, [Number/Mixed maxDepth
]
, [Boolean returnEl
]
) : HTMLElement
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:fi...
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Parameters:
|
Element | |
findParentNode
( String selector
, [Number/Mixed maxDepth
]
, [Boolean returnEl
]
) : HTMLElement
Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Parameters:
|
Element | |
first
( [String selector
]
, [Boolean returnDom
]
) : Ext.Element/HTMLElement
Gets the first child, skipping text nodes
Gets the first child, skipping text nodes
Parameters:
|
Element | |
focus
() : Ext.Element
Tries to focus the element. Any exceptions are caught and ignored.
Tries to focus the element. Any exceptions are caught and ignored.
Parameters:
|
Element | |
getAlignToXY
( Mixed element
, String position
, [Array offsets
]
) : Array
Gets the x,y coordinates to align this element with another element. See alignTo for more info on the supported posit...
Gets the x,y coordinates to align this element with another element. See alignTo
for more info on the supported position values.
Parameters:
|
Element | |
getAnchorXY
( [String anchor
]
, [Boolean local
]
, [Object size
]
) : Array
Gets the x,y coordinates specified by the anchor position on the element.
Gets the x,y coordinates specified by the anchor position on the element.
Parameters:
|
Element | |
getAttributeNS
( String namespace
, String name
) : String
Returns the value of a namespaced attribute from the element's underlying DOM node.
Returns the value of a namespaced attribute from the element's underlying DOM node.
Parameters:
|
Element | |
getBorderWidth
( String side
) : Number
Gets the width of the border(s) for the specified side(s)
Gets the width of the border(s) for the specified side(s)
Parameters:
|
Element | |
getBottom
( Boolean local
) : Number
Gets the bottom Y coordinate of the element (element Y position + element height)
Gets the bottom Y coordinate of the element (element Y position + element height)
Parameters:
|
Element | |
getBox
( [Boolean contentBox
]
, [Boolean local
]
) : Object
Return a box {x, y, width, height} that can be used to set another elements size/location to match this element.
Return a box {x, y, width, height} that can be used to set another elements size/location to match this element.
Parameters:
|
Element | |
相关推荐
在`EXT核心API详解(三)-Ext.Element.txt`中,你将了解到如何选择元素、添加和移除CSS类、处理事件、动画效果以及布局调整。 2. **Array, Date, Function, Number, String**: 在`EXT核心API详解(二)-Array Date ...
"EXT核心API详解(三)-Ext.Element.txt"涵盖了Ext.Element,它是EXT中表示DOM元素的抽象层,提供了丰富的操作DOM元素的方法,如样式设置、尺寸调整、事件监听等。Ext.Element还引入了动画效果,使得对DOM元素的操作...
"EXT核心API详解(三)-Ext.Element.txt"深入解析了Ext.Element,这是Ext处理DOM元素的核心接口。文件可能涵盖了选择和操作DOM元素的方法,如样式设置、尺寸调整、事件监听等,是进行页面动态操作的基础。 "EXT核心...
### EXT-js-中文手册知识点概览 #### 1. EXT简介 - **定义与背景**:EXT是一款基于JavaScript的开源框架,它简化了Web应用程序的开发过程,特别是那些需要复杂用户界面的应用。EXT最初由Jack Slocum创建,并在之后...
cp target/new-api-kafkameter-x.y.z.jar $JMETER_HOME /lib/ext 用法 Kafka生产者采样器 安装kafkameter后,添加Java请求采样器(Add- Add -> Sampler -> Java Request Sampler- Add -> Sampler -> Java Request )...
EXT核心API详解主要涵盖了一系列用于构建富客户端应用的JavaScript库函数和方法。这些API提供了丰富的功能,包括元素操作、事件处理、数据序列化与反序列化、类继承以及组件管理等。以下是对EXT核心API中提及的一些...
EXT核心API是EXT JS库的重要组成部分,它提供了一系列丰富的组件和功能,用于构建富客户端Web应用。EXT JS是一个强大的JavaScript框架,尤其在数据可视化、表格处理、窗口系统和用户界面设计方面表现出色。EXT核心...
1. **Ext.Element**: 表示DOM元素,提供了丰富的DOM操作方法,如样式设置、尺寸调整、事件监听等。 2. **Ext.Panel**: 基础的容器组件,可以包含其他组件,支持多种布局模式。 3. **Ext.Grid**: 数据网格组件,用于...
此外,`Ext.get`是另一个常用的方法,用于根据ID获取页面元素,返回的是一个Element对象,你可以通过Element.dom属性直接操作底层DOM节点。如果需要获取多个元素或具有相同特征但ID不同的元素,可以利用选择器,如...
- **Ext.Element**:用于DOM操作和样式管理,是所有UI组件的基础。 - **Ext.util**:包含各种实用工具函数,如Array、Function、Object等。 - **Ext.data**:数据管理模块,包括数据存储、模型定义、数据交换等。...
其中,`Ext.core`包含了EXT的核心类,如Element、Event对象等。 2. **组件体系**:EXT 3.0的组件都是基于`Ext.Component`抽象类派生的,每个组件都有自己的配置项和方法。例如,`Ext.grid.Panel`继承自`Ext....
1. **核心类**:如Ext.Element,是EXT2.0中最基本的元素操作类,提供了DOM操作和事件处理等功能。 2. **容器类**:如Ext.Panel,是其他组件的容器,可以包含多个子组件,并支持不同的布局策略。 3. **窗体组件**:...
其它控件都是建立在这些底层api的基础上,底层api位于源代码目录的core子目录中,包括DomHelper.js、Element.js等文件,如图xx所示。 控件(widgets):控件是指可以直接在页面中创建的可视化组件,比如面板、...
Ext3.2中文API(最终完成版2010-11-01编译) 修正了Ext.Element类的几个格式Bug