| Namespace | tinymce.dom |
| Class | Element |
| Method | Defined By |
|---|---|
|
Element(Element:String, Optional:Object)
Constructs a new Element instance.
|
Element |
|
getSize():Object
Returns the size of the element by a object with w and h fields.
|
Element |
|
getXY():Object
Returns the absolute X, Y cordinate of the element.
|
Element |
|
moveBy(x:Number, y:Number):void
Moves the element relative to the current position.
|
Element |
|
moveTo(x:Number, y:Number):void
Moves the element to a specific absolute position.
|
Element |
|
on(n:String, f:function, s:Object):function
Adds a event handler to the element.
|
Element |
|
resizeBy(w:Number, h:Numner):void
Resizes the element relative to the current sizeto a specific size.
|
Element |
|
resizeTo(w:Number, h:Numner):void
Resizes the element to a specific size.
|
Element |
|
update(k:String):void
Updates the element blocker in IE6 based on the style information of the element.
|
Element |
public
function Element(Element:String, Optional:Object)
| Element:String | ID to bind/execute methods on. |
| Optional:Object | settings name/value collection. |
public
function getSize():Object
public
function getXY():Object
public
function moveBy(x:Number, y:Number):void
| x:Number | Relative X cordinate of element position. |
| y:Number | Relative Y cordinate of element position. |
public
function moveTo(x:Number, y:Number):void
| x:Number | X cordinate of element position. |
| y:Number | Y cordinate of element position. |
public
function on(n:String, f:function, s:Object):function
| n:String | Event name like for example "click". |
| f:function | Function to execute on the specified event. |
| s:Object | Optional scope to execute function on. |
public
function resizeBy(w:Number, h:Numner):void
| w:Number | Relative width of element. |
| h:Numner | Relative height of element. |
public
function resizeTo(w:Number, h:Numner):void
| w:Number | New width of element. |
| h:Numner | New height of element. |
public
function update(k:String):void
| k:String | Optional function key. Used internally. |