tinymce.ui.Movable
Movable mixin. Makes controls movable absolute and relative to other elements.
Methods
name | summary | defined by |
---|---|---|
moveBy() | Move by a relative x, y values. | tinymce.ui.Movable |
moveRel() | Move relative to the specified element. | tinymce.ui.Movable |
moveTo() | Move to absolute position. | tinymce.ui.Movable |
testMoveRel() | Tests various positions to get the most suitable one. | tinymce.ui.Movable |
Methods
moveBy
moveBy(dx:Number, dy:Number):tinymce.ui.Control
Move by a relative x, y values.
Parameters
- dx (Number) - Relative x position.
- dy (Number) - Relative y position.
Return value
- tinymce.ui.Control - Current control instance.
moveRel
moveRel(elm:Element, rel:String):tinymce.ui.Control
Move relative to the specified element.
Parameters
- elm (Element) - Element to move relative to.
- rel (String) - Relative mode. For example: br-tl.
Return value
- tinymce.ui.Control - Current control instance.
moveTo
moveTo(x:Number, y:Number):tinymce.ui.Control
Move to absolute position.
Parameters
- x (Number) - Absolute x position.
- y (Number) - Absolute y position.
Return value
- tinymce.ui.Control - Current control instance.
testMoveRel
testMoveRel(elm:DOMElement, rels:Array):String
Tests various positions to get the most suitable one.
Parameters
- elm (DOMElement) - Element to position against.
- rels (Array) - Array with relative positions.
Return value
- String - Best suitable relative position.
Can't find what you're looking for? Let us know.
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.