2 "name" : "Roo.Element",
7 "desc" : "Represents an Element in the DOM.<br><br>\nUsage:<br>\n<pre><code>\nvar el = Roo.get(\"my-div\");\n\n// or with getEl\nvar el = getEl(\"my-div\");\n\n// or with a DOM element\nvar el = Roo.get(myDivElement);\n</code></pre>\nUsing Roo.get() or getEl() instead of calling the constructor directly ensures you get the same object\neach call instead of constructing a new one.<br><br>\n<b>Animations</b><br />\nMany of the functions for manipulating an element have an optional \"animate\" parameter. The animate parameter\nshould either be a boolean (true) or an object literal with animation options. The animation options are:\n<pre>\nOption Default Description\n--------- -------- ---------------------------------------------\nduration .35 The duration of the animation in seconds\neasing easeOut The YUI easing method\ncallback none A function to execute when the anim completes\nscope this The scope (this) of the callback function\n</pre>\nAlso, the Anim object being used for the animation will be set on your options object as \"anim\", which allows you to stop or\nmanipulate the animation. Here's an example:\n<pre><code>\nvar el = Roo.get(\"my-div\");\n\n// no animation\nel.setWidth(100);\n\n// default animation\nel.setWidth(100, true);\n\n// animation with some options set\nel.setWidth(100, {\n duration: 1,\n callback: this.foo,\n scope: this\n});\n\n// using the \"anim\" property to get the Anim object\nvar opt = {\n duration: 1,\n callback: this.foo,\n scope: this\n};\nel.setWidth(100, opt);\n...\nif(opt.anim.isAnimated()){\n opt.anim.stop();\n}\n</code></pre>\n<b> Composite (Collections of) Elements</b><br />\nFor working with collections of Elements, see <a href=\"Roo.CompositeElement.html\">Roo.CompositeElement</a>",
11 "memberOf" : "Element",
19 "type" : "String/HTMLElement",
26 "desc" : "(optional) By default the constructor checks to see if there is already an instance of this element in the cache and if there is it returns the same instance. This will skip that check (useful for extending this class).",
36 "name" : "getCenterXY",
38 "desc" : "Calculates the x, y to center this element on the screen",
43 "isConstructor" : false,
56 "desc" : "The x, y values [x, y]"
63 "desc" : "Returns the current scroll position of the element.",
68 "isConstructor" : false,
81 "desc" : "An object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)}"
86 "name" : "createShim",
88 "desc" : "Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.",
93 "isConstructor" : false,
105 "type" : "Roo.Element",
106 "desc" : "The new shim element"
113 "desc" : "Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll().",
114 "sig" : "(side, value, animate)",
118 "isConstructor" : false,
130 "desc" : "Either \"left\" for scrollLeft values or \"top\" for scrollTop values.",
136 "desc" : "The new scroll value",
141 "type" : "Boolean/Object",
142 "desc" : "(optional) true for the default animation or a standard Element animation config object",
155 "name" : "removeAllListeners",
157 "desc" : "Removes all previous added listeners from this element",
158 "sig" : "()\n{\n\n}",
162 "isConstructor" : false,
174 "type" : "Roo.Element",
182 "desc" : "Wrapper for setting style properties, also takes single object parameter of multiple styles.",
183 "sig" : "(property, value)",
187 "isConstructor" : false,
198 "type" : "String/Object",
199 "desc" : "The style property to be set, or an object of multiple styles.",
205 "desc" : "(optional) The value to apply to the given property, or null if an object was passed.",
212 "type" : "Roo.Element",
220 "desc" : "Appends an event handler (Shorthand for addListener)",
221 "sig" : "(eventName, fn, scope, options)",
225 "isConstructor" : false,
235 "name" : "eventName",
237 "desc" : "The type of event to append",
243 "desc" : "The method the event invokes",
249 "desc" : "(optional) The scope (this object) of the fn",
255 "desc" : "(optional)An object with standard {@link Roo.EventManager#addListener} options",
262 "name" : "addClassOnClick",
264 "desc" : "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)",
265 "sig" : "(className)",
269 "isConstructor" : false,
279 "name" : "className",
288 "type" : "Roo.Element",
294 "name" : "getBorderWidth",
296 "desc" : "Gets the width of the border(s) for the specified side(s)",
301 "isConstructor" : false,
313 "desc" : "Can be t, l, r, b or any combination of those to add multiple values. For example,\npassing lr would get the border (l)eft width + the border (r)ight width.",
321 "desc" : "The width of the sides passed added together"
328 "desc" : "Scrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.",
329 "sig" : "(direction, distance, animate)",
333 "isConstructor" : false,
343 "name" : "direction",
345 "desc" : "Possible values are: \"l\",\"left\" - \"r\",\"right\" - \"t\",\"top\",\"up\" - \"b\",\"bottom\",\"down\".",
351 "desc" : "How far to scroll the element in pixels",
356 "type" : "Boolean/Object",
357 "desc" : "(optional) true for the default animation or a standard Element animation config object",
365 "desc" : "Returns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go."
370 "name" : "addKeyMap",
372 "desc" : "Creates a KeyMap for this element",
377 "isConstructor" : false,
389 "desc" : "The KeyMap config. See {@link Roo.KeyMap} for more details",
396 "type" : "Roo.KeyMap",
397 "desc" : "The KeyMap created"
402 "name" : "createChild",
404 "desc" : "Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.",
405 "sig" : "(config, insertBefore, returnDom)",
409 "isConstructor" : false,
421 "desc" : "DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\nautomatically generated with the specified attributes.",
425 "name" : "insertBefore",
426 "type" : "HTMLElement",
427 "desc" : "(optional) a child element of this element",
431 "name" : "returnDom",
433 "desc" : "(optional) true to return the dom node instead of creating an Element",
440 "type" : "Roo.Element",
441 "desc" : "The new child element"
448 "desc" : "Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.",
449 "sig" : "(className)",
453 "isConstructor" : false,
463 "name" : "className",
464 "type" : "String/Array",
465 "desc" : "The CSS class to add, or an array of classes",
472 "type" : "Roo.Element",
480 "desc" : "Sets or Returns the value the dom attribute value",
481 "sig" : "(name, value)",
485 "isConstructor" : false,
496 "type" : "String|Object",
497 "desc" : "The attribute name (or object to set multiple attributes)",
503 "desc" : "(optional) The value to set the attribute to",
511 "desc" : "The attribute value"
516 "name" : "setOpacity",
518 "desc" : "Set the opacity of the element",
519 "sig" : "(opacity, animate)",
523 "isConstructor" : false,
535 "desc" : "The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc",
540 "type" : "Boolean/Object",
541 "desc" : "(optional) true for the default animation or a standard Element animation config object",
548 "type" : "Roo.Element",
556 "desc" : "Set the size of the element. If animation is true, both width an height will be animated concurrently.",
557 "sig" : "(width, height, animate)",
561 "isConstructor" : false,
573 "desc" : "The new width",
579 "desc" : "The new height",
584 "type" : "Boolean/Object",
585 "desc" : "(optional) true for the default animation or a standard Element animation config object",
592 "type" : "Roo.Element",
600 "desc" : "Removes an event handler from this element (shorthand for removeListener)",
601 "sig" : "(eventName, fn)",
605 "isConstructor" : false,
615 "name" : "eventName",
617 "desc" : "the type of event to remove",
623 "desc" : "the method the event invokes",
630 "type" : "Roo.Element",
638 "desc" : "Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).\nThis is a shortcut for findParentNode() that always returns an Roo.Element.",
639 "sig" : "(selector, maxDepth)",
643 "isConstructor" : false,
655 "desc" : "The simple selector to test",
660 "type" : "Number/String/HTMLElement/Element",
661 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
668 "type" : "Roo.Element",
669 "desc" : "The matching DOM node (or null if no match was found)"
676 "desc" : "Forces the browser to repaint this element",
677 "sig" : "()\n{\n\n}",
681 "isConstructor" : false,
693 "type" : "Roo.Element",
699 "name" : "translatePoints",
701 "desc" : "Translates the passed page coordinates into left/top css values for this element",
706 "isConstructor" : false,
717 "type" : "Number/Array",
718 "desc" : "The page x or an array containing [x, y]",
724 "desc" : "The page y",
732 "desc" : "An object with left and top properties. e.g. {left: (value), top: (value)}"
737 "name" : "createProxy",
739 "desc" : "Creates a proxy element of this element",
740 "sig" : "(config, renderTo, matchBox)",
744 "isConstructor" : false,
755 "type" : "String/Object",
756 "desc" : "The class name of the proxy element or a DomHelper config object",
761 "type" : "String/HTMLElement",
762 "desc" : "(optional) The element or element id to render the proxy to (defaults to document.body)",
768 "desc" : "(optional) True to align and size the proxy to this element now (defaults to false)",
775 "type" : "Roo.Element",
776 "desc" : "The new proxy element"
783 "desc" : "Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).",
784 "sig" : "(selector, returnDom)",
788 "isConstructor" : false,
800 "desc" : "The CSS selector",
804 "name" : "returnDom",
806 "desc" : "(optional) True to return the DOM node instead of Roo.Element (defaults to false)",
813 "type" : "HTMLElement/Roo.Element",
814 "desc" : "The child Roo.Element (or DOM node if returnDom = true)"
821 "desc" : "Return a box {x, y, width, height} that can be used to set another elements\nsize/location to match this element.",
822 "sig" : "(contentBox, local)",
826 "isConstructor" : false,
836 "name" : "contentBox",
838 "desc" : "(optional) If true a box for the content of the element is returned.",
844 "desc" : "(optional) If true the element's left and top are returned instead of page x/y.",
852 "desc" : "box An object in the format {x, y, width, height}"
859 "desc" : "Toggles the element's visibility or display, depending on visibility mode.",
864 "isConstructor" : false,
875 "type" : "Boolean/Object",
876 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
883 "type" : "Roo.Element",
889 "name" : "setBounds",
891 "desc" : "Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently.",
892 "sig" : "(x, y, width, height, animate)",
896 "isConstructor" : false,
908 "desc" : "X value for new position (coordinates are page-based)",
914 "desc" : "Y value for new position (coordinates are page-based)",
920 "desc" : "The new width",
926 "desc" : "The new height",
931 "type" : "Boolean/Object",
932 "desc" : "(optional) true for the default animation or a standard Element animation config object",
939 "type" : "Roo.Element",
947 "desc" : "Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
948 "sig" : "()\n{\n\n}",
952 "isConstructor" : false,
965 "desc" : "The X position of the element"
972 "desc" : "Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
973 "sig" : "()\n{\n\n}",
977 "isConstructor" : false,
990 "desc" : "The Y position of the element"
997 "desc" : "Tries to focus the element. Any exceptions are caught and ignored.",
998 "sig" : "()\n{\n\n}",
1002 "isConstructor" : false,
1003 "isPrivate" : false,
1014 "type" : "Roo.Element",
1021 "type" : "function",
1022 "desc" : "Static method to retrieve Element objects. Uses simple caching to consistently return the same object.\nAutomatically fixes if an object was recreated with the same id via AJAX or DOM.",
1027 "isConstructor" : false,
1028 "isPrivate" : false,
1038 "type" : "String/HTMLElement/Element",
1039 "desc" : "The id of the node, a DOM Node or an existing Element.",
1040 "isOptional" : false
1047 "desc" : "The Element object"
1052 "name" : "autoHeight",
1053 "type" : "function",
1054 "desc" : "Measures the element's content height and updates height to match. Note: this function uses setTimeout so\nthe new height may not be available immediately.",
1055 "sig" : "(animate, duration, onComplete, easing)",
1059 "isConstructor" : false,
1060 "isPrivate" : false,
1071 "desc" : "(optional) Animate the transition (defaults to false)",
1072 "isOptional" : false
1075 "name" : "duration",
1077 "desc" : "(optional) Length of the animation in seconds (defaults to .35)",
1078 "isOptional" : false
1081 "name" : "onComplete",
1082 "type" : "Function",
1083 "desc" : "(optional) Function to call when animation completes",
1084 "isOptional" : false
1089 "desc" : "(optional) Easing method to use (defaults to easeOut)",
1090 "isOptional" : false
1096 "type" : "Roo.Element",
1102 "name" : "scrollIntoView",
1103 "type" : "function",
1104 "desc" : "Scrolls this element into view within the passed container.",
1105 "sig" : "(container, hscroll)",
1109 "isConstructor" : false,
1110 "isPrivate" : false,
1119 "name" : "container",
1120 "type" : "String/HTMLElement/Element",
1121 "desc" : "(optional) The container element to scroll (defaults to document.body)",
1122 "isOptional" : false
1127 "desc" : "(optional) False to disable horizontal scroll (defaults to true)",
1128 "isOptional" : false
1134 "type" : "Roo.Element",
1140 "name" : "getAlignToXY",
1141 "type" : "function",
1142 "desc" : "Gets the x,y coordinates to align this element with another element. See {@link #alignTo} for more info on the\nsupported position values.",
1143 "sig" : "(element, position, offsets)",
1147 "isConstructor" : false,
1148 "isPrivate" : false,
1158 "type" : "String/HTMLElement/Roo.Element",
1159 "desc" : "The element to align to.",
1160 "isOptional" : false
1163 "name" : "position",
1165 "desc" : "The position to align to.",
1166 "isOptional" : false
1171 "desc" : "(optional) Offset the positioning by [x, y]",
1172 "isOptional" : false
1184 "name" : "clearOpacity",
1185 "type" : "function",
1186 "desc" : "Clears any opacity settings from this element. Required in some cases for IE.",
1187 "sig" : "()\n{\n\n}",
1191 "isConstructor" : false,
1192 "isPrivate" : false,
1203 "type" : "Roo.Element",
1209 "name" : "setPositioning",
1210 "type" : "function",
1211 "desc" : "Set positioning with an object returned by getPositioning().",
1216 "isConstructor" : false,
1217 "isPrivate" : false,
1229 "isOptional" : false
1235 "type" : "Roo.Element",
1241 "name" : "getMargins",
1242 "type" : "function",
1243 "desc" : "Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,\nthen it returns the calculated width of the sides (see getPadding)",
1248 "isConstructor" : false,
1249 "isPrivate" : false,
1260 "desc" : "(optional) Any combination of l, r, t, b to get the sum of those sides",
1261 "isOptional" : false
1267 "type" : "Object/Number",
1273 "name" : "setRegion",
1274 "type" : "function",
1275 "desc" : "Sets the element's position and size the the specified region. If animation is true then width, height, x and y will be animated concurrently.",
1276 "sig" : "(region, animate)",
1280 "isConstructor" : false,
1281 "isPrivate" : false,
1291 "type" : "Roo.lib.Region",
1292 "desc" : "The region to fill",
1293 "isOptional" : false
1297 "type" : "Boolean/Object",
1298 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1299 "isOptional" : false
1305 "type" : "Roo.Element",
1311 "name" : "getAttributeNS",
1312 "type" : "function",
1313 "desc" : "Returns the value of a namespaced attribute from the element's underlying DOM node.",
1314 "sig" : "(namespace, name)",
1318 "isConstructor" : false,
1319 "isPrivate" : false,
1328 "name" : "namespace",
1330 "desc" : "The namespace in which to look for the attribute",
1331 "isOptional" : false
1336 "desc" : "The attribute name",
1337 "isOptional" : false
1344 "desc" : "The attribute value"
1350 "type" : "function",
1351 "desc" : "Sets the element's left position directly using CSS style (instead of {@link #setX}).",
1356 "isConstructor" : false,
1357 "isPrivate" : false,
1368 "desc" : "The left CSS property value",
1369 "isOptional" : false
1375 "type" : "Roo.Element",
1382 "type" : "function",
1383 "desc" : "Direct access to the UpdateManager update() method (takes the same parameters).",
1384 "sig" : "(url, params, callback, discardUrl)",
1388 "isConstructor" : false,
1389 "isPrivate" : false,
1399 "type" : "String/Function",
1400 "desc" : "The url for this request or a function to call to get the url",
1401 "isOptional" : false
1405 "type" : "String/Object",
1406 "desc" : "(optional) The parameters to pass as either a url encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
1407 "isOptional" : false
1410 "name" : "callback",
1411 "type" : "Function",
1412 "desc" : "(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)",
1413 "isOptional" : false
1416 "name" : "discardUrl",
1418 "desc" : "(optional) By default when you execute an update the defaultUrl is changed to the last used url. If true, it will not store the url.",
1419 "isOptional" : false
1425 "type" : "Roo.Element",
1431 "name" : "replaceClass",
1432 "type" : "function",
1433 "desc" : "Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.",
1434 "sig" : "(oldClassName, newClassName)",
1438 "isConstructor" : false,
1439 "isPrivate" : false,
1448 "name" : "oldClassName",
1450 "desc" : "The CSS class to replace",
1451 "isOptional" : false
1454 "name" : "newClassName",
1456 "desc" : "The replacement CSS class",
1457 "isOptional" : false
1463 "type" : "Roo.Element",
1469 "name" : "initDDTarget",
1470 "type" : "function",
1471 "desc" : "Initializes a {@link Roo.dd.DDTarget} object for this element.",
1472 "sig" : "(group, config, overrides)",
1476 "isConstructor" : false,
1477 "isPrivate" : false,
1488 "desc" : "The group the DDTarget object is member of",
1489 "isOptional" : false
1494 "desc" : "The DDTarget config object",
1495 "isOptional" : false
1498 "name" : "overrides",
1500 "desc" : "An object containing methods to override/implement on the DDTarget object",
1501 "isOptional" : false
1507 "type" : "Roo.dd.DDTarget",
1508 "desc" : "The DDTarget object"
1513 "name" : "setHeight",
1514 "type" : "function",
1515 "desc" : "Set the height of the element",
1516 "sig" : "(height, animate)",
1520 "isConstructor" : false,
1521 "isPrivate" : false,
1532 "desc" : "The new height",
1533 "isOptional" : false
1537 "type" : "Boolean/Object",
1538 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1539 "isOptional" : false
1545 "type" : "Roo.Element",
1552 "type" : "function",
1553 "desc" : "Removes worthless text nodes",
1554 "sig" : "(forceReclean)",
1558 "isConstructor" : false,
1559 "isPrivate" : false,
1568 "name" : "forceReclean",
1570 "desc" : "(optional) By default the element\nkeeps track if it has been cleaned already so\nyou can call this over and over. However, if you update the element and\nneed to force a reclean, you can pass true.",
1571 "isOptional" : false
1577 "name" : "getPositioning",
1578 "type" : "function",
1579 "desc" : "Gets an object with all CSS positioning properties. Useful along with setPostioning to get\nsnapshot before performing an update and then restoring the element.",
1580 "sig" : "()\n{\n\n}",
1584 "isConstructor" : false,
1585 "isPrivate" : false,
1603 "type" : "function",
1604 "desc" : "Update the innerHTML of this element, optionally searching for and processing scripts",
1605 "sig" : "(html, loadScripts, callback)",
1609 "isConstructor" : false,
1610 "isPrivate" : false,
1621 "desc" : "The new HTML",
1622 "isOptional" : false
1625 "name" : "loadScripts",
1627 "desc" : "(optional) true to look for and process scripts",
1628 "isOptional" : false
1631 "name" : "callback",
1632 "type" : "Function",
1633 "desc" : "For async script loading you can be noticed when the update completes",
1634 "isOptional" : false
1640 "type" : "Roo.Element",
1646 "name" : "contains",
1647 "type" : "function",
1648 "desc" : "Returns true if this element is an ancestor of the passed element",
1653 "isConstructor" : false,
1654 "isPrivate" : false,
1664 "type" : "HTMLElement/String",
1665 "desc" : "The element to check",
1666 "isOptional" : false
1673 "desc" : "True if this element is an ancestor of el, else false"
1678 "name" : "appendChild",
1679 "type" : "function",
1680 "desc" : "Appends the passed element(s) to this element",
1685 "isConstructor" : false,
1686 "isPrivate" : false,
1696 "type" : "String/HTMLElement/Array/Element/CompositeElement",
1698 "isOptional" : false
1704 "type" : "Roo.Element",
1710 "name" : "getValue",
1711 "type" : "function",
1712 "desc" : "Returns the value of the \"value\" attribute",
1713 "sig" : "(asNumber)",
1717 "isConstructor" : false,
1718 "isPrivate" : false,
1727 "name" : "asNumber",
1729 "desc" : "true to parse the value as a number",
1730 "isOptional" : false
1736 "type" : "String/Number",
1742 "name" : "getRegion",
1743 "type" : "function",
1744 "desc" : "Returns the region of the given element.\nThe element must be part of the DOM tree to have a region (display:none or elements not appended return false).",
1745 "sig" : "()\n{\n\n}",
1749 "isConstructor" : false,
1750 "isPrivate" : false,
1762 "desc" : "A Roo.lib.Region containing \"top, left, bottom, right\" member data."
1767 "name" : "anchorTo",
1768 "type" : "function",
1769 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
1770 "sig" : "(element, position, offsets, animate, monitorScroll, callback)",
1774 "isConstructor" : false,
1775 "isPrivate" : false,
1785 "type" : "String/HTMLElement/Roo.Element",
1786 "desc" : "The element to align to.",
1787 "isOptional" : false
1790 "name" : "position",
1792 "desc" : "The position to align to.",
1793 "isOptional" : false
1798 "desc" : "(optional) Offset the positioning by [x, y]",
1799 "isOptional" : false
1803 "type" : "Boolean/Object",
1804 "desc" : "(optional) True for the default animation or a standard Element animation config object",
1805 "isOptional" : false
1808 "name" : "monitorScroll",
1809 "type" : "Boolean/Number",
1810 "desc" : "(optional) True to monitor body scroll and reposition. If this parameter\nis a number, it is used as the buffer delay (defaults to 50ms).",
1811 "isOptional" : false
1814 "name" : "callback",
1815 "type" : "Function",
1816 "desc" : "The function to call after the animation finishes",
1817 "isOptional" : false
1823 "type" : "Roo.Element",
1829 "name" : "removeClass",
1830 "type" : "function",
1831 "desc" : "Removes one or more CSS classes from the element.",
1832 "sig" : "(className)",
1836 "isConstructor" : false,
1837 "isPrivate" : false,
1846 "name" : "className",
1847 "type" : "String/Array",
1848 "desc" : "The CSS class to remove, or an array of classes",
1849 "isOptional" : false
1855 "type" : "Roo.Element",
1861 "name" : "radioClass",
1862 "type" : "function",
1863 "desc" : "Adds one or more CSS classes to this element and removes the same class(es) from all siblings.",
1864 "sig" : "(className)",
1868 "isConstructor" : false,
1869 "isPrivate" : false,
1878 "name" : "className",
1879 "type" : "String/Array",
1880 "desc" : "The CSS class to add, or an array of classes",
1881 "isOptional" : false
1887 "type" : "Roo.Element",
1893 "name" : "getWidth",
1894 "type" : "function",
1895 "desc" : "Returns the offset width of the element",
1896 "sig" : "(contentWidth)",
1900 "isConstructor" : false,
1901 "isPrivate" : false,
1910 "name" : "contentWidth",
1912 "desc" : "(optional) true to get the width minus borders and padding",
1913 "isOptional" : false
1920 "desc" : "The element's width"
1925 "name" : "insertBefore",
1926 "type" : "function",
1927 "desc" : "Inserts this element before the passed element in the DOM",
1932 "isConstructor" : false,
1933 "isPrivate" : false,
1943 "type" : "String/HTMLElement/Element",
1944 "desc" : "The element to insert before",
1945 "isOptional" : false
1951 "type" : "Roo.Element",
1957 "name" : "getHeight",
1958 "type" : "function",
1959 "desc" : "Returns the offset height of the element",
1960 "sig" : "(contentHeight)",
1964 "isConstructor" : false,
1965 "isPrivate" : false,
1974 "name" : "contentHeight",
1976 "desc" : "(optional) true to get the height minus borders and padding",
1977 "isOptional" : false
1984 "desc" : "The element's height"
1990 "type" : "function",
1991 "desc" : "Sets the element's top position directly using CSS style (instead of {@link #setY}).",
1996 "isConstructor" : false,
1997 "isPrivate" : false,
2008 "desc" : "The top CSS property value",
2009 "isOptional" : false
2015 "type" : "Roo.Element",
2021 "name" : "toggleClass",
2022 "type" : "function",
2023 "desc" : "Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).",
2024 "sig" : "(className)",
2028 "isConstructor" : false,
2029 "isPrivate" : false,
2038 "name" : "className",
2040 "desc" : "The CSS class to toggle",
2041 "isOptional" : false
2047 "type" : "Roo.Element",
2054 "type" : "function",
2055 "desc" : "Creates and wraps this element with another element",
2056 "sig" : "(config, returnDom)",
2060 "isConstructor" : false,
2061 "isPrivate" : false,
2072 "desc" : "(optional) DomHelper element config object for the wrapper element or null for an empty div",
2073 "isOptional" : false
2076 "name" : "returnDom",
2078 "desc" : "(optional) True to return the raw DOM element instead of Roo.Element",
2079 "isOptional" : false
2085 "type" : "HTMLElement/Element",
2086 "desc" : "The newly created wrapper element"
2091 "name" : "setVisible",
2092 "type" : "function",
2093 "desc" : "Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use\nthe display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property.",
2094 "sig" : "(visible, animate)",
2098 "isConstructor" : false,
2099 "isPrivate" : false,
2110 "desc" : "Whether the element is visible",
2111 "isOptional" : false
2115 "type" : "Boolean/Object",
2116 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
2117 "isOptional" : false
2123 "type" : "Roo.Element",
2129 "name" : "addListener",
2130 "type" : "function",
2131 "desc" : "Appends an event handler",
2132 "sig" : "(eventName, fn, scope, options)",
2136 "isConstructor" : false,
2137 "isPrivate" : false,
2146 "name" : "eventName",
2148 "desc" : "The type of event to append",
2149 "isOptional" : false
2153 "type" : "Function",
2154 "desc" : "The method the event invokes",
2155 "isOptional" : false
2160 "desc" : "(optional) The scope (this object) of the fn",
2161 "isOptional" : false
2166 "desc" : "(optional)An object with standard {@link Roo.EventManager#addListener} options",
2167 "isOptional" : false
2173 "name" : "setWidth",
2174 "type" : "function",
2175 "desc" : "Set the width of the element",
2176 "sig" : "(width, animate)",
2180 "isConstructor" : false,
2181 "isPrivate" : false,
2192 "desc" : "The new width",
2193 "isOptional" : false
2197 "type" : "Boolean/Object",
2198 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2199 "isOptional" : false
2205 "type" : "Roo.Element",
2212 "type" : "function",
2213 "desc" : "Centers the Element in either the viewport, or another Element.",
2214 "sig" : "(centerIn)",
2218 "isConstructor" : false,
2219 "isPrivate" : false,
2228 "name" : "centerIn",
2229 "type" : "String/HTMLElement/Roo.Element",
2230 "desc" : "(optional) The element in which to center the element.",
2231 "isOptional" : false
2237 "name" : "isVisible",
2238 "type" : "function",
2239 "desc" : "Checks whether the element is currently visible using both visibility and display properties.",
2244 "isConstructor" : false,
2245 "isPrivate" : false,
2256 "desc" : "(optional) True to walk the dom and see if parent elements are hidden (defaults to false)",
2257 "isOptional" : false
2264 "desc" : "True if the element is currently visible, else false"
2269 "name" : "findParent",
2270 "type" : "function",
2271 "desc" : "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)",
2272 "sig" : "(selector, maxDepth, returnEl)",
2276 "isConstructor" : false,
2277 "isPrivate" : false,
2286 "name" : "selector",
2288 "desc" : "The simple selector to test",
2289 "isOptional" : false
2292 "name" : "maxDepth",
2293 "type" : "Number/String/HTMLElement/Element",
2294 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
2295 "isOptional" : false
2298 "name" : "returnEl",
2300 "desc" : "(optional) True to return a Roo.Element object instead of DOM node",
2301 "isOptional" : false
2307 "type" : "HTMLElement",
2308 "desc" : "The matching DOM node (or null if no match was found)"
2313 "name" : "addKeyListener",
2314 "type" : "function",
2315 "desc" : "Convenience method for constructing a KeyMap",
2316 "sig" : "(key, fn, scope)",
2320 "isConstructor" : false,
2321 "isPrivate" : false,
2331 "type" : "Number/Array/Object/String",
2332 "desc" : "Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options:\n {key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}",
2333 "isOptional" : false
2337 "type" : "Function",
2338 "desc" : "The function to call",
2339 "isOptional" : false
2344 "desc" : "(optional) The scope of the function",
2345 "isOptional" : false
2351 "type" : "Roo.KeyMap",
2352 "desc" : "The KeyMap created"
2357 "name" : "swallowEvent",
2358 "type" : "function",
2359 "desc" : "Stops the specified event from bubbling and optionally prevents the default action",
2360 "sig" : "(eventName, preventDefault)",
2364 "isConstructor" : false,
2365 "isPrivate" : false,
2374 "name" : "eventName",
2377 "isOptional" : false
2380 "name" : "preventDefault",
2382 "desc" : "(optional) true to prevent the default action too",
2383 "isOptional" : false
2389 "type" : "Roo.Element",
2395 "name" : "getStyles",
2396 "type" : "function",
2397 "desc" : "Returns an object with properties matching the styles requested.\nFor example, el.getStyles('color', 'font-size', 'width') might return\n{'color': '#FFFFFF', 'font-size': '13px', 'width': '100px'}.",
2398 "sig" : "(style1, style2)",
2402 "isConstructor" : false,
2403 "isPrivate" : false,
2414 "desc" : "A style name",
2415 "isOptional" : false
2420 "desc" : "A style name",
2421 "isOptional" : false
2428 "desc" : "The style object"
2434 "type" : "function",
2435 "desc" : "Returns the size of the element.",
2436 "sig" : "(contentSize)",
2440 "isConstructor" : false,
2441 "isPrivate" : false,
2450 "name" : "contentSize",
2452 "desc" : "(optional) true to get the width/size minus borders and padding",
2453 "isOptional" : false
2460 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
2465 "name" : "endMeasure",
2466 "type" : "function",
2467 "desc" : "Restores displays to before beginMeasure was called",
2468 "sig" : "()\n{\n\n}",
2472 "isConstructor" : false,
2473 "isPrivate" : false,
2484 "type" : "Roo.Element",
2490 "name" : "getViewSize",
2491 "type" : "function",
2492 "desc" : "Returns the width and height of the viewport.",
2493 "sig" : "()\n{\n\n}",
2497 "isConstructor" : false,
2498 "isPrivate" : false,
2510 "desc" : "An object containing the viewport's size {width: (viewport width), height: (viewport height)}"
2515 "name" : "addClassOnFocus",
2516 "type" : "function",
2517 "desc" : "Sets up event handlers to add and remove a css class when this element has the focus",
2518 "sig" : "(className)",
2522 "isConstructor" : false,
2523 "isPrivate" : false,
2532 "name" : "className",
2535 "isOptional" : false
2541 "type" : "Roo.Element",
2548 "type" : "function",
2549 "desc" : "Aligns this element with another element relative to the specified anchor points. If the other element is the\ndocument it aligns it to the viewport.\nThe position parameter is optional, and can be specified in any one of the following formats:\n<ul>\n <li><b>Blank</b>: Defaults to aligning the element's top-left corner to the target's bottom-left corner (\"tl-bl\").</li>\n <li><b>One anchor (deprecated)</b>: The passed anchor position is used as the target element's anchor point.\n The element being aligned will position its top-left corner (tl) to that point. <i>This method has been\n deprecated in favor of the newer two anchor syntax below</i>.</li>\n <li><b>Two anchors</b>: If two values from the table below are passed separated by a dash, the first value is used as the\n element's anchor point, and the second value is used as the target's anchor point.</li>\n</ul>\nIn addition to the anchor points, the position parameter also supports the \"?\" character. If \"?\" is passed at the end of\nthe position string, the element will attempt to align as specified, but the position will be adjusted to constrain to\nthe viewport if necessary. Note that the element being aligned might be swapped to align to a different position than\nthat specified in order to enforce the viewport constraints.\nFollowing are all of the supported anchor positions:\n <pre>\n Value Description\n ----- -----------------------------\n tl The top left corner (default)\n t The center of the top edge\n tr The top right corner\n l The center of the left edge\n c In the center of the element\n r The center of the right edge\n bl The bottom left corner\n b The center of the bottom edge\n br The bottom right corner\n </pre>\n Example Usage:\n <pre><code>\n // align el to other-el using the default positioning (\"tl-bl\", non-constrained)\n el.alignTo(\"other-el\");\n\n // align the top left corner of el with the top right corner of other-el (constrained to viewport)\n el.alignTo(\"other-el\", \"tr?\");\n\n // align the bottom right corner of el with the center left edge of other-el\n el.alignTo(\"other-el\", \"br-l?\");\n\n // align the center of el with the bottom left corner of other-el and\n // adjust the x position by -6 pixels (and the y position by 0)\n el.alignTo(\"other-el\", \"c-bl\", [-6, 0]);\n </code></pre>",
2550 "sig" : "(element, position, offsets, animate)",
2554 "isConstructor" : false,
2555 "isPrivate" : false,
2565 "type" : "String/HTMLElement/Roo.Element",
2566 "desc" : "The element to align to.",
2567 "isOptional" : false
2570 "name" : "position",
2572 "desc" : "The position to align to.",
2573 "isOptional" : false
2578 "desc" : "(optional) Offset the positioning by [x, y]",
2579 "isOptional" : false
2583 "type" : "Boolean/Object",
2584 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2585 "isOptional" : false
2591 "type" : "Roo.Element",
2597 "name" : "insertAfter",
2598 "type" : "function",
2599 "desc" : "Inserts this element after the passed element in the DOM",
2604 "isConstructor" : false,
2605 "isPrivate" : false,
2615 "type" : "String/HTMLElement/Element",
2616 "desc" : "The element to insert after",
2617 "isOptional" : false
2623 "type" : "Roo.Element",
2630 "type" : "function",
2631 "desc" : "Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See {@link #setVisible}.",
2632 "sig" : "(animate)",
2636 "isConstructor" : false,
2637 "isPrivate" : false,
2647 "type" : "Boolean/Object",
2648 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2649 "isOptional" : false
2655 "type" : "Roo.Element",
2661 "name" : "setBottom",
2662 "type" : "function",
2663 "desc" : "Sets the element's CSS bottom style.",
2668 "isConstructor" : false,
2669 "isPrivate" : false,
2680 "desc" : "The bottom CSS property value",
2681 "isOptional" : false
2687 "type" : "Roo.Element",
2693 "name" : "clearPositioning",
2694 "type" : "function",
2695 "desc" : "Clear positioning back to the default when the document was loaded",
2700 "isConstructor" : false,
2701 "isPrivate" : false,
2712 "desc" : "(optional) The value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.",
2713 "isOptional" : false
2719 "type" : "Roo.Element",
2725 "name" : "isDisplayed",
2726 "type" : "function",
2727 "desc" : "Returns true if display is not \"none\"",
2728 "sig" : "()\n{\n\n}",
2732 "isConstructor" : false,
2733 "isPrivate" : false,
2751 "type" : "function",
2752 "desc" : "Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See {@link #setVisible}.",
2753 "sig" : "(animate)",
2757 "isConstructor" : false,
2758 "isPrivate" : false,
2768 "type" : "Boolean/Object",
2769 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2770 "isOptional" : false
2776 "type" : "Roo.Element",
2782 "name" : "setLeftTop",
2783 "type" : "function",
2784 "desc" : "Quick set left and top adding default units",
2785 "sig" : "(left, top)",
2789 "isConstructor" : false,
2790 "isPrivate" : false,
2801 "desc" : "The left CSS property value",
2802 "isOptional" : false
2807 "desc" : "The top CSS property value",
2808 "isOptional" : false
2814 "type" : "Roo.Element",
2821 "type" : "function",
2822 "desc" : "Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).",
2823 "sig" : "(selector, returnDom)",
2827 "isConstructor" : false,
2828 "isPrivate" : false,
2837 "name" : "selector",
2839 "desc" : "The CSS selector",
2840 "isOptional" : false
2843 "name" : "returnDom",
2845 "desc" : "(optional) True to return the DOM node instead of Roo.Element (defaults to false)",
2846 "isOptional" : false
2852 "type" : "HTMLElement/Roo.Element",
2853 "desc" : "The child Roo.Element (or DOM node if returnDom = true)"
2859 "type" : "function",
2860 "desc" : "Removes a previously applied mask. If removeEl is true the mask overlay is destroyed, otherwise\nit is cached for reuse.",
2861 "sig" : "()\n{\n\n}",
2865 "isConstructor" : false,
2866 "isPrivate" : false,
2878 "type" : "function",
2879 "desc" : "Sets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
2880 "sig" : "(x, y, animate)",
2884 "isConstructor" : false,
2885 "isPrivate" : false,
2896 "desc" : "X value for new position (coordinates are page-based)",
2897 "isOptional" : false
2902 "desc" : "Y value for new position (coordinates are page-based)",
2903 "isOptional" : false
2907 "type" : "Boolean/Object",
2908 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
2909 "isOptional" : false
2915 "type" : "Roo.Element",
2921 "name" : "addClassOnOver",
2922 "type" : "function",
2923 "desc" : "Sets up event handlers to add and remove a css class when the mouse is over this element",
2924 "sig" : "(className, preventFlicker)",
2928 "isConstructor" : false,
2929 "isPrivate" : false,
2938 "name" : "className",
2941 "isOptional" : false
2944 "name" : "preventFlicker",
2946 "desc" : "(optional) If set to true, it prevents flickering by filtering\nmouseout events for children elements",
2947 "isOptional" : false
2953 "type" : "Roo.Element",
2960 "type" : "function",
2961 "desc" : "Gets the left X coordinate",
2966 "isConstructor" : false,
2967 "isPrivate" : false,
2978 "desc" : "True to get the local css position instead of page coordinate",
2979 "isOptional" : false
2991 "name" : "isScrollable",
2992 "type" : "function",
2993 "desc" : "Returns true if this element is scrollable.",
2994 "sig" : "()\n{\n\n}",
2998 "isConstructor" : false,
2999 "isPrivate" : false,
3017 "type" : "function",
3018 "desc" : "Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a\ngradient background, rounded corners and a 4-way shadow.",
3023 "isConstructor" : false,
3024 "isPrivate" : false,
3035 "desc" : "(optional) A base CSS class to apply to the containing wrapper element (defaults to 'x-box').\nNote that there are a number of CSS rules that are dependent on this name to make the overall effect work,\nso if you supply an alternate base class, make sure you also supply all of the necessary rules.",
3036 "isOptional" : false
3042 "type" : "Roo.Element",
3049 "type" : "function",
3050 "desc" : "Replaces the passed element with this element",
3055 "isConstructor" : false,
3056 "isPrivate" : false,
3066 "type" : "String/HTMLElement/Element",
3067 "desc" : "The element to replace",
3068 "isOptional" : false
3074 "type" : "Roo.Element",
3081 "type" : "function",
3082 "desc" : "Creates a {@link Roo.CompositeElement} for child nodes based on the passed CSS selector (the selector should not contain an id).",
3083 "sig" : "(selector, unique)",
3087 "isConstructor" : false,
3088 "isPrivate" : false,
3097 "name" : "selector",
3099 "desc" : "The CSS selector",
3100 "isOptional" : false
3105 "desc" : "(optional) True to create a unique Roo.Element for each child (defaults to false, which creates a single shared flyweight object)",
3106 "isOptional" : false
3112 "type" : "CompositeElement/CompositeElementLite",
3113 "desc" : "The composite element"
3118 "name" : "isMasked",
3119 "type" : "function",
3120 "desc" : "Returns true if this element is masked",
3121 "sig" : "()\n{\n\n}",
3125 "isConstructor" : false,
3126 "isPrivate" : false,
3143 "name" : "getUpdateManager",
3144 "type" : "function",
3145 "desc" : "Gets this element's UpdateManager",
3146 "sig" : "()\n{\n\n}",
3150 "isConstructor" : false,
3151 "isPrivate" : false,
3162 "type" : "Roo.UpdateManager",
3163 "desc" : "The UpdateManager"
3168 "name" : "insertHtml",
3169 "type" : "function",
3170 "desc" : "Inserts an html fragment into this element",
3171 "sig" : "(where, html, returnEl)",
3175 "isConstructor" : false,
3176 "isPrivate" : false,
3187 "desc" : "Where to insert the html in relation to the this element - beforeBegin, afterBegin, beforeEnd, afterEnd.",
3188 "isOptional" : false
3193 "desc" : "The HTML fragment",
3194 "isOptional" : false
3197 "name" : "returnEl",
3199 "desc" : "True to return an Roo.Element",
3200 "isOptional" : false
3206 "type" : "HTMLElement/Roo.Element",
3207 "desc" : "The inserted node (or nearest related if more than 1 inserted)"
3213 "type" : "function",
3214 "desc" : "Puts a mask over this element to disable user interaction. Requires core.css.\nThis method can only be applied to elements which accept child nodes.",
3215 "sig" : "(msg, msgCls)",
3219 "isConstructor" : false,
3220 "isPrivate" : false,
3231 "desc" : "(optional) A message to display in the mask",
3232 "isOptional" : false
3237 "desc" : "(optional) A css class to apply to the msg element",
3238 "isOptional" : false
3245 "desc" : "The mask element"
3251 "type" : "function",
3252 "desc" : "Gets the top Y coordinate",
3257 "isConstructor" : false,
3258 "isPrivate" : false,
3269 "desc" : "True to get the local css position instead of page coordinate",
3270 "isOptional" : false
3282 "name" : "getBottom",
3283 "type" : "function",
3284 "desc" : "Gets the bottom Y coordinate of the element (element Y position + element height)",
3289 "isConstructor" : false,
3290 "isPrivate" : false,
3301 "desc" : "True to get the local css position instead of page coordinate",
3302 "isOptional" : false
3314 "name" : "getRight",
3315 "type" : "function",
3316 "desc" : "Gets the right X coordinate of the element (element X position + element width)",
3321 "isConstructor" : false,
3322 "isPrivate" : false,
3333 "desc" : "True to get the local css position instead of page coordinate",
3334 "isOptional" : false
3346 "name" : "beginMeasure",
3347 "type" : "function",
3348 "desc" : "Temporarily enables offsets (width,height,x,y) for an element with display:none, use endMeasure() when done.",
3349 "sig" : "()\n{\n\n}",
3353 "isConstructor" : false,
3354 "isPrivate" : false,
3365 "type" : "Roo.Element",
3371 "name" : "appendTo",
3372 "type" : "function",
3373 "desc" : "Appends this element to the passed element",
3378 "isConstructor" : false,
3379 "isPrivate" : false,
3389 "type" : "String/HTMLElement/Element",
3390 "desc" : "The new parent element",
3391 "isOptional" : false
3397 "type" : "Roo.Element",
3404 "type" : "function",
3405 "desc" : "Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element -\nthe dom node can be overwritten by other code.",
3406 "sig" : "(el, named)",
3410 "isConstructor" : false,
3411 "isPrivate" : false,
3421 "type" : "String/HTMLElement",
3422 "desc" : "The dom node or id",
3423 "isOptional" : false
3428 "desc" : "(optional) Allows for creation of named reusable flyweights to\n prevent conflicts (e.g. internally Roo uses \"_internal\")",
3429 "isOptional" : false
3436 "desc" : "The shared Element object"
3441 "name" : "hasClass",
3442 "type" : "function",
3443 "desc" : "Checks if the specified CSS class exists on this element's DOM node.",
3444 "sig" : "(className)",
3448 "isConstructor" : false,
3449 "isPrivate" : false,
3458 "name" : "className",
3460 "desc" : "The CSS class to check for",
3461 "isOptional" : false
3468 "desc" : "True if the class exists, else false"
3473 "name" : "findScrollableParent",
3474 "type" : "function",
3475 "desc" : "Looks at the scrollable parent element",
3476 "sig" : "()\n{\n\n}",
3480 "isConstructor" : false,
3481 "isPrivate" : false,
3492 "name" : "fitToParent",
3493 "type" : "function",
3494 "desc" : "Sizes this element to its parent element's dimensions performing\nneccessary box adjustments.",
3495 "sig" : "(monitorResize, targetParent)",
3499 "isConstructor" : false,
3500 "isPrivate" : false,
3509 "name" : "monitorResize",
3511 "desc" : "(optional) If true maintains the fit when the browser window is resized.",
3512 "isOptional" : false
3515 "name" : "targetParent",
3516 "type" : "String/HTMLElment/Element",
3517 "desc" : "(optional) The target parent, default to the parentNode.",
3518 "isOptional" : false
3524 "type" : "Roo.Element",
3531 "type" : "function",
3532 "desc" : "Sets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
3533 "sig" : "(pos, animate)",
3537 "isConstructor" : false,
3538 "isPrivate" : false,
3549 "desc" : "Contains X & Y [x, y] values for new position (coordinates are page-based)",
3550 "isOptional" : false
3554 "type" : "Boolean/Object",
3555 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3556 "isOptional" : false
3562 "type" : "Roo.Element",
3569 "type" : "function",
3570 "desc" : "Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
3571 "sig" : "()\n{\n\n}",
3575 "isConstructor" : false,
3576 "isPrivate" : false,
3588 "desc" : "The XY position of the element"
3593 "name" : "unselectable",
3594 "type" : "function",
3595 "desc" : "Disables text selection for this element (normalized across browsers)",
3596 "sig" : "()\n{\n\n}",
3600 "isConstructor" : false,
3601 "isPrivate" : false,
3612 "type" : "Roo.Element",
3619 "type" : "function",
3620 "desc" : "Tries to blur the element. Any exceptions are caught and ignored.",
3621 "sig" : "()\n{\n\n}",
3625 "isConstructor" : false,
3626 "isPrivate" : false,
3637 "type" : "Roo.Element",
3643 "name" : "setRight",
3644 "type" : "function",
3645 "desc" : "Sets the element's CSS right style.",
3650 "isConstructor" : false,
3651 "isPrivate" : false,
3662 "desc" : "The right CSS property value",
3663 "isOptional" : false
3669 "type" : "Roo.Element",
3675 "name" : "findParentNode",
3676 "type" : "function",
3677 "desc" : "Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)",
3678 "sig" : "(selector, maxDepth, returnEl)",
3682 "isConstructor" : false,
3683 "isPrivate" : false,
3692 "name" : "selector",
3694 "desc" : "The simple selector to test",
3695 "isOptional" : false
3698 "name" : "maxDepth",
3699 "type" : "Number/String/HTMLElement/Element",
3700 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
3701 "isOptional" : false
3704 "name" : "returnEl",
3706 "desc" : "(optional) True to return a Roo.Element object instead of DOM node",
3707 "isOptional" : false
3713 "type" : "HTMLElement",
3714 "desc" : "The matching DOM node (or null if no match was found)"
3719 "name" : "position",
3720 "type" : "function",
3721 "desc" : "Initializes positioning on this element. If a desired position is not passed, it will make the\nthe element positioned relative IF it is not already positioned.",
3722 "sig" : "(pos, zIndex, x, y)",
3726 "isConstructor" : false,
3727 "isPrivate" : false,
3738 "desc" : "(optional) Positioning to use \"relative\", \"absolute\" or \"fixed\"",
3739 "isOptional" : false
3744 "desc" : "(optional) The zIndex to apply",
3745 "isOptional" : false
3750 "desc" : "(optional) Set the page X position",
3751 "isOptional" : false
3756 "desc" : "(optional) Set the page Y position",
3757 "isOptional" : false
3763 "name" : "getFrameWidth",
3764 "type" : "function",
3765 "desc" : "Returns the sum width of the padding and borders for the passed \"sides\". See getBorderWidth()\n for more information about the sides.",
3770 "isConstructor" : false,
3771 "isPrivate" : false,
3783 "isOptional" : false
3795 "name" : "setLocation",
3796 "type" : "function",
3797 "desc" : "Sets the position of the element in page coordinates, regardless of how the element is positioned.\nThe element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
3798 "sig" : "(x, y, animate)",
3802 "isConstructor" : false,
3803 "isPrivate" : false,
3814 "desc" : "X value for new position (coordinates are page-based)",
3815 "isOptional" : false
3820 "desc" : "Y value for new position (coordinates are page-based)",
3821 "isOptional" : false
3825 "type" : "Boolean/Object",
3826 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3827 "isOptional" : false
3833 "type" : "Roo.Element",
3840 "type" : "function",
3841 "desc" : "Return clipping (overflow) to original clipping before clip() was called",
3842 "sig" : "()\n{\n\n}",
3846 "isConstructor" : false,
3847 "isPrivate" : false,
3858 "type" : "Roo.Element",
3865 "type" : "function",
3866 "desc" : "Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)",
3867 "sig" : "(o, useSet)",
3871 "isConstructor" : false,
3872 "isPrivate" : false,
3883 "desc" : "The object with the attributes",
3884 "isOptional" : false
3889 "desc" : "(optional) false to override the default setAttribute to use expandos.",
3890 "isOptional" : false
3896 "type" : "Roo.Element",
3902 "name" : "setDisplayed",
3903 "type" : "function",
3904 "desc" : "Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.",
3909 "isConstructor" : false,
3910 "isPrivate" : false,
3921 "desc" : "Boolean value to display the element using its default display, or a string to set the display directly",
3922 "isOptional" : false
3928 "type" : "Roo.Element",
3934 "name" : "insertFirst",
3935 "type" : "function",
3936 "desc" : "Inserts (or creates) an element (or DomHelper config) as the first child of the this element",
3941 "isConstructor" : false,
3942 "isPrivate" : false,
3952 "type" : "String/HTMLElement/Element/Object",
3953 "desc" : "The id or element to insert or a DomHelper config to create and insert",
3954 "isOptional" : false
3960 "type" : "Roo.Element",
3961 "desc" : "The new child"
3967 "type" : "function",
3968 "desc" : "Perform animation on this element.",
3969 "sig" : "(args, duration, onComplete, easing, animType)",
3973 "isConstructor" : false,
3974 "isPrivate" : false,
3985 "desc" : "The YUI animation control args",
3986 "isOptional" : false
3989 "name" : "duration",
3991 "desc" : "(optional) How long the animation lasts in seconds (defaults to .35)",
3992 "isOptional" : false
3995 "name" : "onComplete",
3996 "type" : "Function",
3997 "desc" : "(optional) Function to call when animation completes",
3998 "isOptional" : false
4003 "desc" : "(optional) Easing method to use (defaults to 'easeOut')",
4004 "isOptional" : false
4007 "name" : "animType",
4009 "desc" : "(optional) 'run' is the default. Can also be 'color', 'motion', or 'scroll'",
4010 "isOptional" : false
4016 "type" : "Roo.Element",
4022 "name" : "enableDisplayMode",
4023 "type" : "function",
4024 "desc" : "Convenience method for setVisibilityMode(Element.DISPLAY)",
4025 "sig" : "(display)",
4029 "isConstructor" : false,
4030 "isPrivate" : false,
4041 "desc" : "(optional) What to set display to when visible",
4042 "isOptional" : false
4048 "type" : "Roo.Element",
4054 "name" : "getComputedWidth",
4055 "type" : "function",
4056 "desc" : "Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\nwhen needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements\nif a width has not been set using CSS.",
4057 "sig" : "()\n{\n\n}",
4061 "isConstructor" : false,
4062 "isPrivate" : false,
4080 "type" : "function",
4081 "desc" : "Store the current overflow setting and clip overflow on the element - use {@link #unclip} to remove",
4082 "sig" : "()\n{\n\n}",
4086 "isConstructor" : false,
4087 "isPrivate" : false,
4098 "type" : "Roo.Element",
4104 "name" : "setVisibilityMode",
4105 "type" : "function",
4106 "desc" : "Sets the element's visibility mode. When setVisible() is called it\nwill use this to determine whether to set the visibility or the display property.",
4107 "sig" : "(visMode)",
4111 "isConstructor" : false,
4112 "isPrivate" : false,
4123 "desc" : "Element.VISIBILITY or Element.DISPLAY",
4124 "isOptional" : false
4130 "type" : "Roo.Element",
4136 "name" : "getColor",
4137 "type" : "function",
4138 "desc" : "Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values\nare convert to standard 6 digit hex color.",
4139 "sig" : "(attr, defaultValue, prefix)",
4143 "isConstructor" : false,
4144 "isPrivate" : false,
4155 "desc" : "The css attribute",
4156 "isOptional" : false
4159 "name" : "defaultValue",
4161 "desc" : "The default value to use when a valid color isn't found",
4162 "isOptional" : false
4167 "desc" : "(optional) defaults to #. Use an empty string when working with\nYUI color anims.",
4168 "isOptional" : false
4174 "name" : "insertSibling",
4175 "type" : "function",
4176 "desc" : "Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element",
4177 "sig" : "(el, where, returnDom)",
4181 "isConstructor" : false,
4182 "isPrivate" : false,
4192 "type" : "String/HTMLElement/Element/Object",
4193 "desc" : "The id or element to insert or a DomHelper config to create and insert",
4194 "isOptional" : false
4199 "desc" : "(optional) 'before' or 'after' defaults to before",
4200 "isOptional" : false
4203 "name" : "returnDom",
4205 "desc" : "(optional) True to return the raw DOM element instead of Roo.Element",
4206 "isOptional" : false
4212 "type" : "Roo.Element",
4213 "desc" : "the inserted Element"
4218 "name" : "removeListener",
4219 "type" : "function",
4220 "desc" : "Removes an event handler from this element",
4221 "sig" : "(eventName, fn, scope)",
4225 "isConstructor" : false,
4226 "isPrivate" : false,
4235 "name" : "eventName",
4237 "desc" : "the type of event to remove",
4238 "isOptional" : false
4242 "type" : "Function",
4243 "desc" : "the method the event invokes",
4244 "isOptional" : false
4248 "type" : "Function",
4249 "desc" : "(needed for svg fake listeners)",
4250 "isOptional" : false
4256 "type" : "Roo.Element",
4262 "name" : "applyStyles",
4263 "type" : "function",
4264 "desc" : "More flexible version of {@link #setStyle} for setting style properties.",
4269 "isConstructor" : false,
4270 "isPrivate" : false,
4280 "type" : "String/Object/Function",
4281 "desc" : "A style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.",
4282 "isOptional" : false
4288 "type" : "Roo.Element",
4294 "name" : "getPrevSibling",
4295 "type" : "function",
4296 "desc" : "Gets the previous sibling, skipping text nodes",
4297 "sig" : "()\n{\n\n}",
4301 "isConstructor" : false,
4302 "isPrivate" : false,
4313 "type" : "HTMLElement",
4314 "desc" : "The previous sibling or null"
4320 "type" : "function",
4321 "desc" : "Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x and y will be animated concurrently.",
4322 "sig" : "(box, adjust, animate)",
4326 "isConstructor" : false,
4327 "isPrivate" : false,
4338 "desc" : "The box to fill {x, y, width, height}",
4339 "isOptional" : false
4344 "desc" : "(optional) Whether to adjust for box-model issues automatically",
4345 "isOptional" : false
4349 "type" : "Boolean/Object",
4350 "desc" : "(optional) true for the default animation or a standard Element animation config object",
4351 "isOptional" : false
4357 "type" : "Roo.Element",
4363 "name" : "initDDProxy",
4364 "type" : "function",
4365 "desc" : "Initializes a {@link Roo.dd.DDProxy} object for this element.",
4366 "sig" : "(group, config, overrides)",
4370 "isConstructor" : false,
4371 "isPrivate" : false,
4382 "desc" : "The group the DDProxy object is member of",
4383 "isOptional" : false
4388 "desc" : "The DDProxy config object",
4389 "isOptional" : false
4392 "name" : "overrides",
4394 "desc" : "An object containing methods to override/implement on the DDProxy object",
4395 "isOptional" : false
4401 "type" : "Roo.dd.DDProxy",
4402 "desc" : "The DDProxy object"
4408 "type" : "function",
4409 "desc" : "Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
4410 "sig" : "(The, animate)",
4414 "isConstructor" : false,
4415 "isPrivate" : false,
4426 "desc" : "X position of the element",
4427 "isOptional" : false
4431 "type" : "Boolean/Object",
4432 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
4433 "isOptional" : false
4439 "type" : "Roo.Element",
4446 "type" : "function",
4447 "desc" : "Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false).",
4448 "sig" : "(The, animate)",
4452 "isConstructor" : false,
4453 "isPrivate" : false,
4464 "desc" : "Y position of the element",
4465 "isOptional" : false
4469 "type" : "Boolean/Object",
4470 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
4471 "isOptional" : false
4477 "type" : "Roo.Element",
4484 "type" : "function",
4485 "desc" : "Selects child nodes based on the passed CSS selector (the selector should not contain an id).",
4486 "sig" : "(selector)",
4490 "isConstructor" : false,
4491 "isPrivate" : false,
4500 "name" : "selector",
4502 "desc" : "The CSS selector",
4503 "isOptional" : false
4510 "desc" : "An array of the matched nodes"
4515 "name" : "getAnchorXY",
4516 "type" : "function",
4517 "desc" : "Gets the x,y coordinates specified by the anchor position on the element.",
4518 "sig" : "(anchor, size, local)",
4522 "isConstructor" : false,
4523 "isPrivate" : false,
4534 "desc" : "(optional) The specified anchor position (defaults to \"c\"). See {@link #alignTo} for details on supported anchor positions.",
4535 "isOptional" : false
4540 "desc" : "(optional) An object containing the size to use for calculating anchor position\n {width: (target width), height: (target height)} (defaults to the element's current size)",
4541 "isOptional" : false
4546 "desc" : "(optional) True to get the local (element top/left-relative) anchor position instead of page coordinates",
4547 "isOptional" : false
4554 "desc" : "[x, y] An array containing the element's x and y coordinates"
4560 "type" : "function",
4561 "desc" : "Initializes a {@link Roo.dd.DD} drag drop object for this element.",
4562 "sig" : "(group, config, overrides)",
4566 "isConstructor" : false,
4567 "isPrivate" : false,
4578 "desc" : "The group the DD object is member of",
4579 "isOptional" : false
4584 "desc" : "The DD config object",
4585 "isOptional" : false
4588 "name" : "overrides",
4590 "desc" : "An object containing methods to override/implement on the DD object",
4591 "isOptional" : false
4597 "type" : "Roo.dd.DD",
4598 "desc" : "The DD object"
4603 "name" : "getComputedHeight",
4604 "type" : "function",
4605 "desc" : "Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\nwhen needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements\nif a height has not been set using CSS.",
4606 "sig" : "()\n{\n\n}",
4610 "isConstructor" : false,
4611 "isPrivate" : false,
4629 "type" : "function",
4630 "desc" : "Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)",
4631 "sig" : "(selector)",
4635 "isConstructor" : false,
4636 "isPrivate" : false,
4645 "name" : "selector",
4647 "desc" : "The simple selector to test",
4648 "isOptional" : false
4655 "desc" : "True if this element matches the selector, else false"
4661 "type" : "function",
4662 "desc" : "Move this element relative to its current position.",
4663 "sig" : "(direction, distance, animate)",
4667 "isConstructor" : false,
4668 "isPrivate" : false,
4677 "name" : "direction",
4679 "desc" : "Possible values are: \"l\",\"left\" - \"r\",\"right\" - \"t\",\"top\",\"up\" - \"b\",\"bottom\",\"down\".",
4680 "isOptional" : false
4683 "name" : "distance",
4685 "desc" : "How far to move the element in pixels",
4686 "isOptional" : false
4690 "type" : "Boolean/Object",
4691 "desc" : "(optional) true for the default animation or a standard Element animation config object",
4692 "isOptional" : false
4698 "type" : "Roo.Element",
4705 "type" : "function",
4706 "desc" : "Removes this element from the DOM and deletes it from the cache",
4707 "sig" : "()\n{\n\n}",
4711 "isConstructor" : false,
4712 "isPrivate" : false,
4723 "name" : "getNextSibling",
4724 "type" : "function",
4725 "desc" : "Gets the next sibling, skipping text nodes",
4726 "sig" : "()\n{\n\n}",
4730 "isConstructor" : false,
4731 "isPrivate" : false,
4742 "type" : "HTMLElement",
4743 "desc" : "The next sibling or null"
4748 "name" : "getStyle",
4749 "type" : "function",
4750 "desc" : "Normalizes currentStyle and computedStyle. This is not YUI getStyle, it is an optimised version.",
4751 "sig" : "(property)",
4755 "isConstructor" : false,
4756 "isPrivate" : false,
4765 "name" : "property",
4767 "desc" : "The style property whose value is returned.",
4768 "isOptional" : false
4775 "desc" : "The current value of the style property for this element."
4780 "name" : "isBorderBox",
4781 "type" : "function",
4782 "desc" : "Tests various css rules/browsers to determine if this element uses a border box",
4783 "sig" : "()\n{\n\n}",
4787 "isConstructor" : false,
4788 "isPrivate" : false,
4805 "name" : "getPadding",
4806 "type" : "function",
4807 "desc" : "Gets the width of the padding(s) for the specified side(s)",
4812 "isConstructor" : false,
4813 "isPrivate" : false,
4824 "desc" : "Can be t, l, r, b or any combination of those to add multiple values. For example,\npassing lr would get the padding (l)eft + the padding (r)ight.",
4825 "isOptional" : false
4832 "desc" : "The padding of the sides passed added together"