2 "name" : "Roo.Element",
5 "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>",
9 "memberOf" : "Element",
17 "type" : "String/HTMLElement",
24 "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).",
34 "name" : "getCenterXY",
35 "desc" : "Calculates the x, y to center this element on the screen",
37 "isConstructor" : false,
39 "memberOf" : "Roo.Element",
50 "desc" : "The x, y values [x, y]"
56 "desc" : "Returns the current scroll position of the element.",
58 "isConstructor" : false,
60 "memberOf" : "Roo.Element",
71 "desc" : "An object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)}"
76 "name" : "createShim",
77 "desc" : "Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.",
79 "isConstructor" : false,
81 "memberOf" : "Roo.Element",
91 "type" : "Roo.Element",
92 "desc" : "The new shim element"
98 "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().",
100 "isConstructor" : false,
102 "memberOf" : "Roo.Element",
111 "desc" : "Either \"left\" for scrollLeft values or \"top\" for scrollTop values.",
117 "desc" : "The new scroll value",
122 "type" : "Boolean/Object",
123 "desc" : "(optional) true for the default animation or a standard Element animation config object",
136 "name" : "removeAllListeners",
137 "desc" : "Removes all previous added listeners from this element",
139 "isConstructor" : false,
141 "memberOf" : "Roo.Element",
151 "type" : "Roo.Element",
158 "desc" : "Wrapper for setting style properties, also takes single object parameter of multiple styles.",
160 "isConstructor" : false,
162 "memberOf" : "Roo.Element",
170 "type" : "String/Object",
171 "desc" : "The style property to be set, or an object of multiple styles.",
177 "desc" : "(optional) The value to apply to the given property, or null if an object was passed.",
184 "type" : "Roo.Element",
191 "desc" : "Appends an event handler (Shorthand for addListener)",
193 "isConstructor" : false,
195 "memberOf" : "Roo.Element",
202 "name" : "eventName",
204 "desc" : "The type of event to append",
210 "desc" : "The method the event invokes",
216 "desc" : "(optional) The scope (this object) of the fn",
222 "desc" : "(optional)An object with standard {@link Roo.EventManager#addListener} options",
230 "name" : "addClassOnClick",
231 "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)",
233 "isConstructor" : false,
235 "memberOf" : "Roo.Element",
242 "name" : "className",
251 "type" : "Roo.Element",
257 "name" : "getBorderWidth",
258 "desc" : "Gets the width of the border(s) for the specified side(s)",
260 "isConstructor" : false,
262 "memberOf" : "Roo.Element",
271 "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.",
279 "desc" : "The width of the sides passed added together"
285 "desc" : "Scrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.",
287 "isConstructor" : false,
289 "memberOf" : "Roo.Element",
296 "name" : "direction",
298 "desc" : "Possible values are: \"l\",\"left\" - \"r\",\"right\" - \"t\",\"top\",\"up\" - \"b\",\"bottom\",\"down\".",
304 "desc" : "How far to scroll the element in pixels",
309 "type" : "Boolean/Object",
310 "desc" : "(optional) true for the default animation or a standard Element animation config object",
318 "desc" : "Returns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go."
323 "name" : "addKeyMap",
324 "desc" : "Creates a KeyMap for this element",
326 "isConstructor" : false,
328 "memberOf" : "Roo.Element",
337 "desc" : "The KeyMap config. See {@link Roo.KeyMap} for more details",
344 "type" : "Roo.KeyMap",
345 "desc" : "The KeyMap created"
350 "name" : "createChild",
351 "desc" : "Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.",
353 "isConstructor" : false,
355 "memberOf" : "Roo.Element",
364 "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.",
368 "name" : "insertBefore",
369 "type" : "HTMLElement",
370 "desc" : "(optional) a child element of this element",
374 "name" : "returnDom",
376 "desc" : "(optional) true to return the dom node instead of creating an Element",
383 "type" : "Roo.Element",
384 "desc" : "The new child element"
390 "desc" : "Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.",
392 "isConstructor" : false,
394 "memberOf" : "Roo.Element",
401 "name" : "className",
402 "type" : "String/Array",
403 "desc" : "The CSS class to add, or an array of classes",
410 "type" : "Roo.Element",
417 "desc" : "Sets or Returns the value the dom attribute value",
419 "isConstructor" : false,
421 "memberOf" : "Roo.Element",
429 "type" : "String|Object",
430 "desc" : "The attribute name (or object to set multiple attributes)",
436 "desc" : "(optional) The value to set the attribute to",
444 "desc" : "The attribute value"
449 "name" : "setOpacity",
450 "desc" : "Set the opacity of the element",
452 "isConstructor" : false,
454 "memberOf" : "Roo.Element",
463 "desc" : "The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc",
468 "type" : "Boolean/Object",
469 "desc" : "(optional) true for the default animation or a standard Element animation config object",
476 "type" : "Roo.Element",
483 "desc" : "Set the size of the element. If animation is true, both width an height will be animated concurrently.",
485 "isConstructor" : false,
487 "memberOf" : "Roo.Element",
496 "desc" : "The new width",
502 "desc" : "The new height",
507 "type" : "Boolean/Object",
508 "desc" : "(optional) true for the default animation or a standard Element animation config object",
515 "type" : "Roo.Element",
522 "desc" : "Removes an event handler from this element (shorthand for removeListener)",
524 "isConstructor" : false,
526 "memberOf" : "Roo.Element",
533 "name" : "eventName",
535 "desc" : "the type of event to remove",
541 "desc" : "the method the event invokes",
548 "type" : "Roo.Element",
555 "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.",
557 "isConstructor" : false,
559 "memberOf" : "Roo.Element",
568 "desc" : "The simple selector to test",
573 "type" : "Number/String/HTMLElement/Element",
574 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
581 "type" : "Roo.Element",
582 "desc" : "The matching DOM node (or null if no match was found)"
588 "desc" : "Forces the browser to repaint this element",
590 "isConstructor" : false,
592 "memberOf" : "Roo.Element",
602 "type" : "Roo.Element",
608 "name" : "translatePoints",
609 "desc" : "Translates the passed page coordinates into left/top css values for this element",
611 "isConstructor" : false,
613 "memberOf" : "Roo.Element",
621 "type" : "Number/Array",
622 "desc" : "The page x or an array containing [x, y]",
628 "desc" : "The page y",
636 "desc" : "An object with left and top properties. e.g. {left: (value), top: (value)}"
641 "name" : "createProxy",
642 "desc" : "Creates a proxy element of this element",
644 "isConstructor" : false,
646 "memberOf" : "Roo.Element",
654 "type" : "String/Object",
655 "desc" : "The class name of the proxy element or a DomHelper config object",
660 "type" : "String/HTMLElement",
661 "desc" : "(optional) The element or element id to render the proxy to (defaults to document.body)",
667 "desc" : "(optional) True to align and size the proxy to this element now (defaults to false)",
674 "type" : "Roo.Element",
675 "desc" : "The new proxy element"
681 "desc" : "Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).",
683 "isConstructor" : false,
685 "memberOf" : "Roo.Element",
694 "desc" : "The CSS selector",
698 "name" : "returnDom",
700 "desc" : "(optional) True to return the DOM node instead of Roo.Element (defaults to false)",
707 "type" : "HTMLElement/Roo.Element",
708 "desc" : "The child Roo.Element (or DOM node if returnDom = true)"
714 "desc" : "Return a box {x, y, width, height} that can be used to set another elements\nsize/location to match this element.",
716 "isConstructor" : false,
718 "memberOf" : "Roo.Element",
725 "name" : "contentBox",
727 "desc" : "(optional) If true a box for the content of the element is returned.",
733 "desc" : "(optional) If true the element's left and top are returned instead of page x/y.",
741 "desc" : "box An object in the format {x, y, width, height}"
747 "desc" : "Toggles the element's visibility or display, depending on visibility mode.",
749 "isConstructor" : false,
751 "memberOf" : "Roo.Element",
759 "type" : "Boolean/Object",
760 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
767 "type" : "Roo.Element",
773 "name" : "setBounds",
774 "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.",
776 "isConstructor" : false,
778 "memberOf" : "Roo.Element",
787 "desc" : "X value for new position (coordinates are page-based)",
793 "desc" : "Y value for new position (coordinates are page-based)",
799 "desc" : "The new width",
805 "desc" : "The new height",
810 "type" : "Boolean/Object",
811 "desc" : "(optional) true for the default animation or a standard Element animation config object",
818 "type" : "Roo.Element",
825 "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).",
827 "isConstructor" : false,
829 "memberOf" : "Roo.Element",
840 "desc" : "The X position of the element"
846 "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).",
848 "isConstructor" : false,
850 "memberOf" : "Roo.Element",
861 "desc" : "The Y position of the element"
867 "desc" : "Tries to focus the element. Any exceptions are caught and ignored.",
869 "isConstructor" : false,
871 "memberOf" : "Roo.Element",
881 "type" : "Roo.Element",
888 "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.",
890 "isConstructor" : false,
892 "memberOf" : "Roo.Element",
900 "type" : "String/HTMLElement/Element",
901 "desc" : "The id of the node, a DOM Node or an existing Element.",
909 "desc" : "The Element object"
914 "name" : "autoHeight",
915 "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.",
917 "isConstructor" : false,
919 "memberOf" : "Roo.Element",
928 "desc" : "(optional) Animate the transition (defaults to false)",
934 "desc" : "(optional) Length of the animation in seconds (defaults to .35)",
938 "name" : "onComplete",
940 "desc" : "(optional) Function to call when animation completes",
946 "desc" : "(optional) Easing method to use (defaults to easeOut)",
953 "type" : "Roo.Element",
959 "name" : "scrollIntoView",
960 "desc" : "Scrolls this element into view within the passed container.",
962 "isConstructor" : false,
964 "memberOf" : "Roo.Element",
971 "name" : "container",
972 "type" : "String/HTMLElement/Element",
973 "desc" : "(optional) The container element to scroll (defaults to document.body)",
979 "desc" : "(optional) False to disable horizontal scroll (defaults to true)",
986 "type" : "Roo.Element",
992 "name" : "getAlignToXY",
993 "desc" : "Gets the x,y coordinates to align this element with another element. See {@link #alignTo} for more info on the\nsupported position values.",
995 "isConstructor" : false,
997 "memberOf" : "Roo.Element",
1005 "type" : "String/HTMLElement/Roo.Element",
1006 "desc" : "The element to align to.",
1007 "isOptional" : false
1010 "name" : "position",
1012 "desc" : "The position to align to.",
1013 "isOptional" : false
1018 "desc" : "(optional) Offset the positioning by [x, y]",
1019 "isOptional" : false
1031 "name" : "clearOpacity",
1032 "desc" : "Clears any opacity settings from this element. Required in some cases for IE.",
1034 "isConstructor" : false,
1035 "isPrivate" : false,
1036 "memberOf" : "Roo.Element",
1046 "type" : "Roo.Element",
1052 "name" : "setPositioning",
1053 "desc" : "Set positioning with an object returned by getPositioning().",
1055 "isConstructor" : false,
1056 "isPrivate" : false,
1057 "memberOf" : "Roo.Element",
1067 "isOptional" : false
1073 "type" : "Roo.Element",
1079 "name" : "getMargins",
1080 "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)",
1082 "isConstructor" : false,
1083 "isPrivate" : false,
1084 "memberOf" : "Roo.Element",
1093 "desc" : "(optional) Any combination of l, r, t, b to get the sum of those sides",
1094 "isOptional" : false
1100 "type" : "Object/Number",
1106 "name" : "setRegion",
1107 "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.",
1109 "isConstructor" : false,
1110 "isPrivate" : false,
1111 "memberOf" : "Roo.Element",
1119 "type" : "Roo.lib.Region",
1120 "desc" : "The region to fill",
1121 "isOptional" : false
1125 "type" : "Boolean/Object",
1126 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1127 "isOptional" : false
1133 "type" : "Roo.Element",
1139 "name" : "getAttributeNS",
1140 "desc" : "Returns the value of a namespaced attribute from the element's underlying DOM node.",
1142 "isConstructor" : false,
1143 "isPrivate" : false,
1144 "memberOf" : "Roo.Element",
1151 "name" : "namespace",
1153 "desc" : "The namespace in which to look for the attribute",
1154 "isOptional" : false
1159 "desc" : "The attribute name",
1160 "isOptional" : false
1167 "desc" : "The attribute value"
1173 "desc" : "Sets the element's left position directly using CSS style (instead of {@link #setX}).",
1175 "isConstructor" : false,
1176 "isPrivate" : false,
1177 "memberOf" : "Roo.Element",
1186 "desc" : "The left CSS property value",
1187 "isOptional" : false
1193 "type" : "Roo.Element",
1200 "desc" : "Direct access to the UpdateManager update() method (takes the same parameters).",
1202 "isConstructor" : false,
1203 "isPrivate" : false,
1204 "memberOf" : "Roo.Element",
1212 "type" : "String/Function",
1213 "desc" : "The url for this request or a function to call to get the url",
1214 "isOptional" : false
1218 "type" : "String/Object",
1219 "desc" : "(optional) The parameters to pass as either a url encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
1220 "isOptional" : false
1223 "name" : "callback",
1224 "type" : "Function",
1225 "desc" : "(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)",
1226 "isOptional" : false
1229 "name" : "discardUrl",
1231 "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.",
1232 "isOptional" : false
1238 "type" : "Roo.Element",
1244 "name" : "replaceClass",
1245 "desc" : "Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.",
1247 "isConstructor" : false,
1248 "isPrivate" : false,
1249 "memberOf" : "Roo.Element",
1256 "name" : "oldClassName",
1258 "desc" : "The CSS class to replace",
1259 "isOptional" : false
1262 "name" : "newClassName",
1264 "desc" : "The replacement CSS class",
1265 "isOptional" : false
1271 "type" : "Roo.Element",
1277 "name" : "initDDTarget",
1278 "desc" : "Initializes a {@link Roo.dd.DDTarget} object for this element.",
1280 "isConstructor" : false,
1281 "isPrivate" : false,
1282 "memberOf" : "Roo.Element",
1291 "desc" : "The group the DDTarget object is member of",
1292 "isOptional" : false
1297 "desc" : "The DDTarget config object",
1298 "isOptional" : false
1301 "name" : "overrides",
1303 "desc" : "An object containing methods to override/implement on the DDTarget object",
1304 "isOptional" : false
1310 "type" : "Roo.dd.DDTarget",
1311 "desc" : "The DDTarget object"
1316 "name" : "setHeight",
1317 "desc" : "Set the height of the element",
1319 "isConstructor" : false,
1320 "isPrivate" : false,
1321 "memberOf" : "Roo.Element",
1330 "desc" : "The new height",
1331 "isOptional" : false
1335 "type" : "Boolean/Object",
1336 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1337 "isOptional" : false
1343 "type" : "Roo.Element",
1350 "desc" : "Removes worthless text nodes",
1352 "isConstructor" : false,
1353 "isPrivate" : false,
1354 "memberOf" : "Roo.Element",
1361 "name" : "forceReclean",
1363 "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.",
1364 "isOptional" : false
1371 "name" : "getPositioning",
1372 "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.",
1374 "isConstructor" : false,
1375 "isPrivate" : false,
1376 "memberOf" : "Roo.Element",
1393 "desc" : "Update the innerHTML of this element, optionally searching for and processing scripts",
1395 "isConstructor" : false,
1396 "isPrivate" : false,
1397 "memberOf" : "Roo.Element",
1406 "desc" : "The new HTML",
1407 "isOptional" : false
1410 "name" : "loadScripts",
1412 "desc" : "(optional) true to look for and process scripts",
1413 "isOptional" : false
1416 "name" : "callback",
1417 "type" : "Function",
1418 "desc" : "For async script loading you can be noticed when the update completes",
1419 "isOptional" : false
1425 "type" : "Roo.Element",
1431 "name" : "contains",
1432 "desc" : "Returns true if this element is an ancestor of the passed element",
1434 "isConstructor" : false,
1435 "isPrivate" : false,
1436 "memberOf" : "Roo.Element",
1444 "type" : "HTMLElement/String",
1445 "desc" : "The element to check",
1446 "isOptional" : false
1453 "desc" : "True if this element is an ancestor of el, else false"
1458 "name" : "appendChild",
1459 "desc" : "Appends the passed element(s) to this element",
1461 "isConstructor" : false,
1462 "isPrivate" : false,
1463 "memberOf" : "Roo.Element",
1471 "type" : "String/HTMLElement/Array/Element/CompositeElement",
1473 "isOptional" : false
1479 "type" : "Roo.Element",
1485 "name" : "getValue",
1486 "desc" : "Returns the value of the \"value\" attribute",
1488 "isConstructor" : false,
1489 "isPrivate" : false,
1490 "memberOf" : "Roo.Element",
1497 "name" : "asNumber",
1499 "desc" : "true to parse the value as a number",
1500 "isOptional" : false
1506 "type" : "String/Number",
1512 "name" : "getRegion",
1513 "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).",
1515 "isConstructor" : false,
1516 "isPrivate" : false,
1517 "memberOf" : "Roo.Element",
1528 "desc" : "A Roo.lib.Region containing \"top, left, bottom, right\" member data."
1533 "name" : "anchorTo",
1534 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
1536 "isConstructor" : false,
1537 "isPrivate" : false,
1538 "memberOf" : "Roo.Element",
1546 "type" : "String/HTMLElement/Roo.Element",
1547 "desc" : "The element to align to.",
1548 "isOptional" : false
1551 "name" : "position",
1553 "desc" : "The position to align to.",
1554 "isOptional" : false
1559 "desc" : "(optional) Offset the positioning by [x, y]",
1560 "isOptional" : false
1564 "type" : "Boolean/Object",
1565 "desc" : "(optional) True for the default animation or a standard Element animation config object",
1566 "isOptional" : false
1569 "name" : "monitorScroll",
1570 "type" : "Boolean/Number",
1571 "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).",
1572 "isOptional" : false
1575 "name" : "callback",
1576 "type" : "Function",
1577 "desc" : "The function to call after the animation finishes",
1578 "isOptional" : false
1584 "type" : "Roo.Element",
1590 "name" : "removeClass",
1591 "desc" : "Removes one or more CSS classes from the element.",
1593 "isConstructor" : false,
1594 "isPrivate" : false,
1595 "memberOf" : "Roo.Element",
1602 "name" : "className",
1603 "type" : "String/Array",
1604 "desc" : "The CSS class to remove, or an array of classes",
1605 "isOptional" : false
1611 "type" : "Roo.Element",
1617 "name" : "radioClass",
1618 "desc" : "Adds one or more CSS classes to this element and removes the same class(es) from all siblings.",
1620 "isConstructor" : false,
1621 "isPrivate" : false,
1622 "memberOf" : "Roo.Element",
1629 "name" : "className",
1630 "type" : "String/Array",
1631 "desc" : "The CSS class to add, or an array of classes",
1632 "isOptional" : false
1638 "type" : "Roo.Element",
1644 "name" : "getWidth",
1645 "desc" : "Returns the offset width of the element",
1647 "isConstructor" : false,
1648 "isPrivate" : false,
1649 "memberOf" : "Roo.Element",
1656 "name" : "contentWidth",
1658 "desc" : "(optional) true to get the width minus borders and padding",
1659 "isOptional" : false
1666 "desc" : "The element's width"
1671 "name" : "insertBefore",
1672 "desc" : "Inserts this element before the passed element in the DOM",
1674 "isConstructor" : false,
1675 "isPrivate" : false,
1676 "memberOf" : "Roo.Element",
1684 "type" : "String/HTMLElement/Element",
1685 "desc" : "The element to insert before",
1686 "isOptional" : false
1692 "type" : "Roo.Element",
1698 "name" : "getHeight",
1699 "desc" : "Returns the offset height of the element",
1701 "isConstructor" : false,
1702 "isPrivate" : false,
1703 "memberOf" : "Roo.Element",
1710 "name" : "contentHeight",
1712 "desc" : "(optional) true to get the height minus borders and padding",
1713 "isOptional" : false
1720 "desc" : "The element's height"
1726 "desc" : "Sets the element's top position directly using CSS style (instead of {@link #setY}).",
1728 "isConstructor" : false,
1729 "isPrivate" : false,
1730 "memberOf" : "Roo.Element",
1739 "desc" : "The top CSS property value",
1740 "isOptional" : false
1746 "type" : "Roo.Element",
1752 "name" : "toggleClass",
1753 "desc" : "Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).",
1755 "isConstructor" : false,
1756 "isPrivate" : false,
1757 "memberOf" : "Roo.Element",
1764 "name" : "className",
1766 "desc" : "The CSS class to toggle",
1767 "isOptional" : false
1773 "type" : "Roo.Element",
1780 "desc" : "Creates and wraps this element with another element",
1782 "isConstructor" : false,
1783 "isPrivate" : false,
1784 "memberOf" : "Roo.Element",
1793 "desc" : "(optional) DomHelper element config object for the wrapper element or null for an empty div",
1794 "isOptional" : false
1797 "name" : "returnDom",
1799 "desc" : "(optional) True to return the raw DOM element instead of Roo.Element",
1800 "isOptional" : false
1806 "type" : "HTMLElement/Element",
1807 "desc" : "The newly created wrapper element"
1812 "name" : "setVisible",
1813 "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.",
1815 "isConstructor" : false,
1816 "isPrivate" : false,
1817 "memberOf" : "Roo.Element",
1826 "desc" : "Whether the element is visible",
1827 "isOptional" : false
1831 "type" : "Boolean/Object",
1832 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
1833 "isOptional" : false
1839 "type" : "Roo.Element",
1845 "name" : "addListener",
1846 "desc" : "Appends an event handler",
1848 "isConstructor" : false,
1849 "isPrivate" : false,
1850 "memberOf" : "Roo.Element",
1857 "name" : "eventName",
1859 "desc" : "The type of event to append",
1860 "isOptional" : false
1864 "type" : "Function",
1865 "desc" : "The method the event invokes",
1866 "isOptional" : false
1871 "desc" : "(optional) The scope (this object) of the fn",
1872 "isOptional" : false
1877 "desc" : "(optional)An object with standard {@link Roo.EventManager#addListener} options",
1878 "isOptional" : false
1885 "name" : "setWidth",
1886 "desc" : "Set the width of the element",
1888 "isConstructor" : false,
1889 "isPrivate" : false,
1890 "memberOf" : "Roo.Element",
1899 "desc" : "The new width",
1900 "isOptional" : false
1904 "type" : "Boolean/Object",
1905 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1906 "isOptional" : false
1912 "type" : "Roo.Element",
1919 "desc" : "Centers the Element in either the viewport, or another Element.",
1921 "isConstructor" : false,
1922 "isPrivate" : false,
1923 "memberOf" : "Roo.Element",
1930 "name" : "centerIn",
1931 "type" : "String/HTMLElement/Roo.Element",
1932 "desc" : "(optional) The element in which to center the element.",
1933 "isOptional" : false
1940 "name" : "isVisible",
1941 "desc" : "Checks whether the element is currently visible using both visibility and display properties.",
1943 "isConstructor" : false,
1944 "isPrivate" : false,
1945 "memberOf" : "Roo.Element",
1954 "desc" : "(optional) True to walk the dom and see if parent elements are hidden (defaults to false)",
1955 "isOptional" : false
1962 "desc" : "True if the element is currently visible, else false"
1967 "name" : "findParent",
1968 "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)",
1970 "isConstructor" : false,
1971 "isPrivate" : false,
1972 "memberOf" : "Roo.Element",
1979 "name" : "selector",
1981 "desc" : "The simple selector to test",
1982 "isOptional" : false
1985 "name" : "maxDepth",
1986 "type" : "Number/String/HTMLElement/Element",
1987 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
1988 "isOptional" : false
1991 "name" : "returnEl",
1993 "desc" : "(optional) True to return a Roo.Element object instead of DOM node",
1994 "isOptional" : false
2000 "type" : "HTMLElement",
2001 "desc" : "The matching DOM node (or null if no match was found)"
2006 "name" : "addKeyListener",
2007 "desc" : "Convenience method for constructing a KeyMap",
2009 "isConstructor" : false,
2010 "isPrivate" : false,
2011 "memberOf" : "Roo.Element",
2019 "type" : "Number/Array/Object/String",
2020 "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)}",
2021 "isOptional" : false
2025 "type" : "Function",
2026 "desc" : "The function to call",
2027 "isOptional" : false
2032 "desc" : "(optional) The scope of the function",
2033 "isOptional" : false
2039 "type" : "Roo.KeyMap",
2040 "desc" : "The KeyMap created"
2045 "name" : "swallowEvent",
2046 "desc" : "Stops the specified event from bubbling and optionally prevents the default action",
2048 "isConstructor" : false,
2049 "isPrivate" : false,
2050 "memberOf" : "Roo.Element",
2057 "name" : "eventName",
2060 "isOptional" : false
2063 "name" : "preventDefault",
2065 "desc" : "(optional) true to prevent the default action too",
2066 "isOptional" : false
2072 "type" : "Roo.Element",
2078 "name" : "getStyles",
2079 "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'}.",
2081 "isConstructor" : false,
2082 "isPrivate" : false,
2083 "memberOf" : "Roo.Element",
2092 "desc" : "A style name",
2093 "isOptional" : false
2098 "desc" : "A style name",
2099 "isOptional" : false
2106 "desc" : "The style object"
2112 "desc" : "Returns the size of the element.",
2114 "isConstructor" : false,
2115 "isPrivate" : false,
2116 "memberOf" : "Roo.Element",
2123 "name" : "contentSize",
2125 "desc" : "(optional) true to get the width/size minus borders and padding",
2126 "isOptional" : false
2133 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
2138 "name" : "endMeasure",
2139 "desc" : "Restores displays to before beginMeasure was called",
2141 "isConstructor" : false,
2142 "isPrivate" : false,
2143 "memberOf" : "Roo.Element",
2153 "type" : "Roo.Element",
2159 "name" : "getViewSize",
2160 "desc" : "Returns the width and height of the viewport.",
2162 "isConstructor" : false,
2163 "isPrivate" : false,
2164 "memberOf" : "Roo.Element",
2175 "desc" : "An object containing the viewport's size {width: (viewport width), height: (viewport height)}"
2180 "name" : "addClassOnFocus",
2181 "desc" : "Sets up event handlers to add and remove a css class when this element has the focus",
2183 "isConstructor" : false,
2184 "isPrivate" : false,
2185 "memberOf" : "Roo.Element",
2192 "name" : "className",
2195 "isOptional" : false
2201 "type" : "Roo.Element",
2208 "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>",
2210 "isConstructor" : false,
2211 "isPrivate" : false,
2212 "memberOf" : "Roo.Element",
2220 "type" : "String/HTMLElement/Roo.Element",
2221 "desc" : "The element to align to.",
2222 "isOptional" : false
2225 "name" : "position",
2227 "desc" : "The position to align to.",
2228 "isOptional" : false
2233 "desc" : "(optional) Offset the positioning by [x, y]",
2234 "isOptional" : false
2238 "type" : "Boolean/Object",
2239 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2240 "isOptional" : false
2246 "type" : "Roo.Element",
2252 "name" : "insertAfter",
2253 "desc" : "Inserts this element after the passed element in the DOM",
2255 "isConstructor" : false,
2256 "isPrivate" : false,
2257 "memberOf" : "Roo.Element",
2265 "type" : "String/HTMLElement/Element",
2266 "desc" : "The element to insert after",
2267 "isOptional" : false
2273 "type" : "Roo.Element",
2280 "desc" : "Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See {@link #setVisible}.",
2282 "isConstructor" : false,
2283 "isPrivate" : false,
2284 "memberOf" : "Roo.Element",
2292 "type" : "Boolean/Object",
2293 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2294 "isOptional" : false
2300 "type" : "Roo.Element",
2306 "name" : "setBottom",
2307 "desc" : "Sets the element's CSS bottom style.",
2309 "isConstructor" : false,
2310 "isPrivate" : false,
2311 "memberOf" : "Roo.Element",
2320 "desc" : "The bottom CSS property value",
2321 "isOptional" : false
2327 "type" : "Roo.Element",
2333 "name" : "clearPositioning",
2334 "desc" : "Clear positioning back to the default when the document was loaded",
2336 "isConstructor" : false,
2337 "isPrivate" : false,
2338 "memberOf" : "Roo.Element",
2347 "desc" : "(optional) The value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.",
2348 "isOptional" : false
2354 "type" : "Roo.Element",
2360 "name" : "isDisplayed",
2361 "desc" : "Returns true if display is not \"none\"",
2363 "isConstructor" : false,
2364 "isPrivate" : false,
2365 "memberOf" : "Roo.Element",
2382 "desc" : "Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See {@link #setVisible}.",
2384 "isConstructor" : false,
2385 "isPrivate" : false,
2386 "memberOf" : "Roo.Element",
2394 "type" : "Boolean/Object",
2395 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2396 "isOptional" : false
2402 "type" : "Roo.Element",
2408 "name" : "setLeftTop",
2409 "desc" : "Quick set left and top adding default units",
2411 "isConstructor" : false,
2412 "isPrivate" : false,
2413 "memberOf" : "Roo.Element",
2422 "desc" : "The left CSS property value",
2423 "isOptional" : false
2428 "desc" : "The top CSS property value",
2429 "isOptional" : false
2435 "type" : "Roo.Element",
2442 "desc" : "Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).",
2444 "isConstructor" : false,
2445 "isPrivate" : false,
2446 "memberOf" : "Roo.Element",
2453 "name" : "selector",
2455 "desc" : "The CSS selector",
2456 "isOptional" : false
2459 "name" : "returnDom",
2461 "desc" : "(optional) True to return the DOM node instead of Roo.Element (defaults to false)",
2462 "isOptional" : false
2468 "type" : "HTMLElement/Roo.Element",
2469 "desc" : "The child Roo.Element (or DOM node if returnDom = true)"
2475 "desc" : "Removes a previously applied mask. If removeEl is true the mask overlay is destroyed, otherwise\nit is cached for reuse.",
2477 "isConstructor" : false,
2478 "isPrivate" : false,
2479 "memberOf" : "Roo.Element",
2491 "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).",
2493 "isConstructor" : false,
2494 "isPrivate" : false,
2495 "memberOf" : "Roo.Element",
2504 "desc" : "X value for new position (coordinates are page-based)",
2505 "isOptional" : false
2510 "desc" : "Y value for new position (coordinates are page-based)",
2511 "isOptional" : false
2515 "type" : "Boolean/Object",
2516 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
2517 "isOptional" : false
2523 "type" : "Roo.Element",
2529 "name" : "addClassOnOver",
2530 "desc" : "Sets up event handlers to add and remove a css class when the mouse is over this element",
2532 "isConstructor" : false,
2533 "isPrivate" : false,
2534 "memberOf" : "Roo.Element",
2541 "name" : "className",
2544 "isOptional" : false
2547 "name" : "preventFlicker",
2549 "desc" : "(optional) If set to true, it prevents flickering by filtering\nmouseout events for children elements",
2550 "isOptional" : false
2556 "type" : "Roo.Element",
2563 "desc" : "Gets the left X coordinate",
2565 "isConstructor" : false,
2566 "isPrivate" : false,
2567 "memberOf" : "Roo.Element",
2576 "desc" : "True to get the local css position instead of page coordinate",
2577 "isOptional" : false
2589 "name" : "isScrollable",
2590 "desc" : "Returns true if this element is scrollable.",
2592 "isConstructor" : false,
2593 "isPrivate" : false,
2594 "memberOf" : "Roo.Element",
2611 "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.",
2613 "isConstructor" : false,
2614 "isPrivate" : false,
2615 "memberOf" : "Roo.Element",
2624 "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.",
2625 "isOptional" : false
2631 "type" : "Roo.Element",
2638 "desc" : "Replaces the passed element with this element",
2640 "isConstructor" : false,
2641 "isPrivate" : false,
2642 "memberOf" : "Roo.Element",
2650 "type" : "String/HTMLElement/Element",
2651 "desc" : "The element to replace",
2652 "isOptional" : false
2658 "type" : "Roo.Element",
2665 "desc" : "Creates a {@link Roo.CompositeElement} for child nodes based on the passed CSS selector (the selector should not contain an id).",
2667 "isConstructor" : false,
2668 "isPrivate" : false,
2669 "memberOf" : "Roo.Element",
2676 "name" : "selector",
2678 "desc" : "The CSS selector",
2679 "isOptional" : false
2684 "desc" : "(optional) True to create a unique Roo.Element for each child (defaults to false, which creates a single shared flyweight object)",
2685 "isOptional" : false
2691 "type" : "CompositeElement/CompositeElementLite",
2692 "desc" : "The composite element"
2697 "name" : "isMasked",
2698 "desc" : "Returns true if this element is masked",
2700 "isConstructor" : false,
2701 "isPrivate" : false,
2702 "memberOf" : "Roo.Element",
2718 "name" : "getUpdateManager",
2719 "desc" : "Gets this element's UpdateManager",
2721 "isConstructor" : false,
2722 "isPrivate" : false,
2723 "memberOf" : "Roo.Element",
2733 "type" : "Roo.UpdateManager",
2734 "desc" : "The UpdateManager"
2739 "name" : "insertHtml",
2740 "desc" : "Inserts an html fragment into this element",
2742 "isConstructor" : false,
2743 "isPrivate" : false,
2744 "memberOf" : "Roo.Element",
2753 "desc" : "Where to insert the html in relation to the this element - beforeBegin, afterBegin, beforeEnd, afterEnd.",
2754 "isOptional" : false
2759 "desc" : "The HTML fragment",
2760 "isOptional" : false
2763 "name" : "returnEl",
2765 "desc" : "True to return an Roo.Element",
2766 "isOptional" : false
2772 "type" : "HTMLElement/Roo.Element",
2773 "desc" : "The inserted node (or nearest related if more than 1 inserted)"
2779 "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.",
2781 "isConstructor" : false,
2782 "isPrivate" : false,
2783 "memberOf" : "Roo.Element",
2792 "desc" : "(optional) A message to display in the mask",
2793 "isOptional" : false
2798 "desc" : "(optional) A css class to apply to the msg element",
2799 "isOptional" : false
2806 "desc" : "The mask element"
2812 "desc" : "Gets the top Y coordinate",
2814 "isConstructor" : false,
2815 "isPrivate" : false,
2816 "memberOf" : "Roo.Element",
2825 "desc" : "True to get the local css position instead of page coordinate",
2826 "isOptional" : false
2838 "name" : "getBottom",
2839 "desc" : "Gets the bottom Y coordinate of the element (element Y position + element height)",
2841 "isConstructor" : false,
2842 "isPrivate" : false,
2843 "memberOf" : "Roo.Element",
2852 "desc" : "True to get the local css position instead of page coordinate",
2853 "isOptional" : false
2865 "name" : "getRight",
2866 "desc" : "Gets the right X coordinate of the element (element X position + element width)",
2868 "isConstructor" : false,
2869 "isPrivate" : false,
2870 "memberOf" : "Roo.Element",
2879 "desc" : "True to get the local css position instead of page coordinate",
2880 "isOptional" : false
2892 "name" : "beginMeasure",
2893 "desc" : "Temporarily enables offsets (width,height,x,y) for an element with display:none, use endMeasure() when done.",
2895 "isConstructor" : false,
2896 "isPrivate" : false,
2897 "memberOf" : "Roo.Element",
2907 "type" : "Roo.Element",
2913 "name" : "appendTo",
2914 "desc" : "Appends this element to the passed element",
2916 "isConstructor" : false,
2917 "isPrivate" : false,
2918 "memberOf" : "Roo.Element",
2926 "type" : "String/HTMLElement/Element",
2927 "desc" : "The new parent element",
2928 "isOptional" : false
2934 "type" : "Roo.Element",
2941 "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.",
2943 "isConstructor" : false,
2944 "isPrivate" : false,
2945 "memberOf" : "Roo.Element",
2953 "type" : "String/HTMLElement",
2954 "desc" : "The dom node or id",
2955 "isOptional" : false
2960 "desc" : "(optional) Allows for creation of named reusable flyweights to\n prevent conflicts (e.g. internally Roo uses \"_internal\")",
2961 "isOptional" : false
2968 "desc" : "The shared Element object"
2973 "name" : "hasClass",
2974 "desc" : "Checks if the specified CSS class exists on this element's DOM node.",
2976 "isConstructor" : false,
2977 "isPrivate" : false,
2978 "memberOf" : "Roo.Element",
2985 "name" : "className",
2987 "desc" : "The CSS class to check for",
2988 "isOptional" : false
2995 "desc" : "True if the class exists, else false"
3000 "name" : "findScrollableParent",
3001 "desc" : "Looks at the scrollable parent element",
3003 "isConstructor" : false,
3004 "isPrivate" : false,
3005 "memberOf" : "Roo.Element",
3016 "name" : "fitToParent",
3017 "desc" : "Sizes this element to its parent element's dimensions performing\nneccessary box adjustments.",
3019 "isConstructor" : false,
3020 "isPrivate" : false,
3021 "memberOf" : "Roo.Element",
3028 "name" : "monitorResize",
3030 "desc" : "(optional) If true maintains the fit when the browser window is resized.",
3031 "isOptional" : false
3034 "name" : "targetParent",
3035 "type" : "String/HTMLElment/Element",
3036 "desc" : "(optional) The target parent, default to the parentNode.",
3037 "isOptional" : false
3043 "type" : "Roo.Element",
3050 "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).",
3052 "isConstructor" : false,
3053 "isPrivate" : false,
3054 "memberOf" : "Roo.Element",
3063 "desc" : "Contains X & Y [x, y] values for new position (coordinates are page-based)",
3064 "isOptional" : false
3068 "type" : "Boolean/Object",
3069 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3070 "isOptional" : false
3076 "type" : "Roo.Element",
3083 "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).",
3085 "isConstructor" : false,
3086 "isPrivate" : false,
3087 "memberOf" : "Roo.Element",
3098 "desc" : "The XY position of the element"
3103 "name" : "unselectable",
3104 "desc" : "Disables text selection for this element (normalized across browsers)",
3106 "isConstructor" : false,
3107 "isPrivate" : false,
3108 "memberOf" : "Roo.Element",
3118 "type" : "Roo.Element",
3125 "desc" : "Tries to blur the element. Any exceptions are caught and ignored.",
3127 "isConstructor" : false,
3128 "isPrivate" : false,
3129 "memberOf" : "Roo.Element",
3139 "type" : "Roo.Element",
3145 "name" : "setRight",
3146 "desc" : "Sets the element's CSS right style.",
3148 "isConstructor" : false,
3149 "isPrivate" : false,
3150 "memberOf" : "Roo.Element",
3159 "desc" : "The right CSS property value",
3160 "isOptional" : false
3166 "type" : "Roo.Element",
3172 "name" : "findParentNode",
3173 "desc" : "Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)",
3175 "isConstructor" : false,
3176 "isPrivate" : false,
3177 "memberOf" : "Roo.Element",
3184 "name" : "selector",
3186 "desc" : "The simple selector to test",
3187 "isOptional" : false
3190 "name" : "maxDepth",
3191 "type" : "Number/String/HTMLElement/Element",
3192 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
3193 "isOptional" : false
3196 "name" : "returnEl",
3198 "desc" : "(optional) True to return a Roo.Element object instead of DOM node",
3199 "isOptional" : false
3205 "type" : "HTMLElement",
3206 "desc" : "The matching DOM node (or null if no match was found)"
3211 "name" : "position",
3212 "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.",
3214 "isConstructor" : false,
3215 "isPrivate" : false,
3216 "memberOf" : "Roo.Element",
3225 "desc" : "(optional) Positioning to use \"relative\", \"absolute\" or \"fixed\"",
3226 "isOptional" : false
3231 "desc" : "(optional) The zIndex to apply",
3232 "isOptional" : false
3237 "desc" : "(optional) Set the page X position",
3238 "isOptional" : false
3243 "desc" : "(optional) Set the page Y position",
3244 "isOptional" : false
3251 "name" : "getFrameWidth",
3252 "desc" : "Returns the sum width of the padding and borders for the passed \"sides\". See getBorderWidth()\n for more information about the sides.",
3254 "isConstructor" : false,
3255 "isPrivate" : false,
3256 "memberOf" : "Roo.Element",
3266 "isOptional" : false
3278 "name" : "setLocation",
3279 "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).",
3281 "isConstructor" : false,
3282 "isPrivate" : false,
3283 "memberOf" : "Roo.Element",
3292 "desc" : "X value for new position (coordinates are page-based)",
3293 "isOptional" : false
3298 "desc" : "Y value for new position (coordinates are page-based)",
3299 "isOptional" : false
3303 "type" : "Boolean/Object",
3304 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3305 "isOptional" : false
3311 "type" : "Roo.Element",
3318 "desc" : "Return clipping (overflow) to original clipping before clip() was called",
3320 "isConstructor" : false,
3321 "isPrivate" : false,
3322 "memberOf" : "Roo.Element",
3332 "type" : "Roo.Element",
3339 "desc" : "Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)",
3341 "isConstructor" : false,
3342 "isPrivate" : false,
3343 "memberOf" : "Roo.Element",
3352 "desc" : "The object with the attributes",
3353 "isOptional" : false
3358 "desc" : "(optional) false to override the default setAttribute to use expandos.",
3359 "isOptional" : false
3365 "type" : "Roo.Element",
3371 "name" : "setDisplayed",
3372 "desc" : "Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.",
3374 "isConstructor" : false,
3375 "isPrivate" : false,
3376 "memberOf" : "Roo.Element",
3385 "desc" : "Boolean value to display the element using its default display, or a string to set the display directly",
3386 "isOptional" : false
3392 "type" : "Roo.Element",
3398 "name" : "insertFirst",
3399 "desc" : "Inserts (or creates) an element (or DomHelper config) as the first child of the this element",
3401 "isConstructor" : false,
3402 "isPrivate" : false,
3403 "memberOf" : "Roo.Element",
3411 "type" : "String/HTMLElement/Element/Object",
3412 "desc" : "The id or element to insert or a DomHelper config to create and insert",
3413 "isOptional" : false
3419 "type" : "Roo.Element",
3420 "desc" : "The new child"
3426 "desc" : "Perform animation on this element.",
3428 "isConstructor" : false,
3429 "isPrivate" : false,
3430 "memberOf" : "Roo.Element",
3439 "desc" : "The YUI animation control args",
3440 "isOptional" : false
3443 "name" : "duration",
3445 "desc" : "(optional) How long the animation lasts in seconds (defaults to .35)",
3446 "isOptional" : false
3449 "name" : "onComplete",
3450 "type" : "Function",
3451 "desc" : "(optional) Function to call when animation completes",
3452 "isOptional" : false
3457 "desc" : "(optional) Easing method to use (defaults to 'easeOut')",
3458 "isOptional" : false
3461 "name" : "animType",
3463 "desc" : "(optional) 'run' is the default. Can also be 'color', 'motion', or 'scroll'",
3464 "isOptional" : false
3470 "type" : "Roo.Element",
3476 "name" : "enableDisplayMode",
3477 "desc" : "Convenience method for setVisibilityMode(Element.DISPLAY)",
3479 "isConstructor" : false,
3480 "isPrivate" : false,
3481 "memberOf" : "Roo.Element",
3490 "desc" : "(optional) What to set display to when visible",
3491 "isOptional" : false
3497 "type" : "Roo.Element",
3503 "name" : "getComputedWidth",
3504 "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.",
3506 "isConstructor" : false,
3507 "isPrivate" : false,
3508 "memberOf" : "Roo.Element",
3525 "desc" : "Store the current overflow setting and clip overflow on the element - use {@link #unclip} to remove",
3527 "isConstructor" : false,
3528 "isPrivate" : false,
3529 "memberOf" : "Roo.Element",
3539 "type" : "Roo.Element",
3545 "name" : "setVisibilityMode",
3546 "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.",
3548 "isConstructor" : false,
3549 "isPrivate" : false,
3550 "memberOf" : "Roo.Element",
3559 "desc" : "Element.VISIBILITY or Element.DISPLAY",
3560 "isOptional" : false
3566 "type" : "Roo.Element",
3572 "name" : "getColor",
3573 "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.",
3575 "isConstructor" : false,
3576 "isPrivate" : false,
3577 "memberOf" : "Roo.Element",
3586 "desc" : "The css attribute",
3587 "isOptional" : false
3590 "name" : "defaultValue",
3592 "desc" : "The default value to use when a valid color isn't found",
3593 "isOptional" : false
3598 "desc" : "(optional) defaults to #. Use an empty string when working with\nYUI color anims.",
3599 "isOptional" : false
3606 "name" : "insertSibling",
3607 "desc" : "Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element",
3609 "isConstructor" : false,
3610 "isPrivate" : false,
3611 "memberOf" : "Roo.Element",
3619 "type" : "String/HTMLElement/Element/Object",
3620 "desc" : "The id or element to insert or a DomHelper config to create and insert",
3621 "isOptional" : false
3626 "desc" : "(optional) 'before' or 'after' defaults to before",
3627 "isOptional" : false
3630 "name" : "returnDom",
3632 "desc" : "(optional) True to return the raw DOM element instead of Roo.Element",
3633 "isOptional" : false
3639 "type" : "Roo.Element",
3640 "desc" : "the inserted Element"
3645 "name" : "removeListener",
3646 "desc" : "Removes an event handler from this element",
3648 "isConstructor" : false,
3649 "isPrivate" : false,
3650 "memberOf" : "Roo.Element",
3657 "name" : "eventName",
3659 "desc" : "the type of event to remove",
3660 "isOptional" : false
3664 "type" : "Function",
3665 "desc" : "the method the event invokes",
3666 "isOptional" : false
3672 "type" : "Roo.Element",
3678 "name" : "applyStyles",
3679 "desc" : "More flexible version of {@link #setStyle} for setting style properties.",
3681 "isConstructor" : false,
3682 "isPrivate" : false,
3683 "memberOf" : "Roo.Element",
3691 "type" : "String/Object/Function",
3692 "desc" : "A style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.",
3693 "isOptional" : false
3699 "type" : "Roo.Element",
3705 "name" : "getPrevSibling",
3706 "desc" : "Gets the previous sibling, skipping text nodes",
3708 "isConstructor" : false,
3709 "isPrivate" : false,
3710 "memberOf" : "Roo.Element",
3720 "type" : "HTMLElement",
3721 "desc" : "The previous sibling or null"
3727 "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.",
3729 "isConstructor" : false,
3730 "isPrivate" : false,
3731 "memberOf" : "Roo.Element",
3740 "desc" : "The box to fill {x, y, width, height}",
3741 "isOptional" : false
3746 "desc" : "(optional) Whether to adjust for box-model issues automatically",
3747 "isOptional" : false
3751 "type" : "Boolean/Object",
3752 "desc" : "(optional) true for the default animation or a standard Element animation config object",
3753 "isOptional" : false
3759 "type" : "Roo.Element",
3765 "name" : "initDDProxy",
3766 "desc" : "Initializes a {@link Roo.dd.DDProxy} object for this element.",
3768 "isConstructor" : false,
3769 "isPrivate" : false,
3770 "memberOf" : "Roo.Element",
3779 "desc" : "The group the DDProxy object is member of",
3780 "isOptional" : false
3785 "desc" : "The DDProxy config object",
3786 "isOptional" : false
3789 "name" : "overrides",
3791 "desc" : "An object containing methods to override/implement on the DDProxy object",
3792 "isOptional" : false
3798 "type" : "Roo.dd.DDProxy",
3799 "desc" : "The DDProxy object"
3805 "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).",
3807 "isConstructor" : false,
3808 "isPrivate" : false,
3809 "memberOf" : "Roo.Element",
3818 "desc" : "X position of the element",
3819 "isOptional" : false
3823 "type" : "Boolean/Object",
3824 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3825 "isOptional" : false
3831 "type" : "Roo.Element",
3838 "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).",
3840 "isConstructor" : false,
3841 "isPrivate" : false,
3842 "memberOf" : "Roo.Element",
3851 "desc" : "Y position of the element",
3852 "isOptional" : false
3856 "type" : "Boolean/Object",
3857 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3858 "isOptional" : false
3864 "type" : "Roo.Element",
3871 "desc" : "Selects child nodes based on the passed CSS selector (the selector should not contain an id).",
3873 "isConstructor" : false,
3874 "isPrivate" : false,
3875 "memberOf" : "Roo.Element",
3882 "name" : "selector",
3884 "desc" : "The CSS selector",
3885 "isOptional" : false
3892 "desc" : "An array of the matched nodes"
3897 "name" : "getAnchorXY",
3898 "desc" : "Gets the x,y coordinates specified by the anchor position on the element.",
3900 "isConstructor" : false,
3901 "isPrivate" : false,
3902 "memberOf" : "Roo.Element",
3911 "desc" : "(optional) The specified anchor position (defaults to \"c\"). See {@link #alignTo} for details on supported anchor positions.",
3912 "isOptional" : false
3917 "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)",
3918 "isOptional" : false
3923 "desc" : "(optional) True to get the local (element top/left-relative) anchor position instead of page coordinates",
3924 "isOptional" : false
3931 "desc" : "[x, y] An array containing the element's x and y coordinates"
3937 "desc" : "Initializes a {@link Roo.dd.DD} drag drop object for this element.",
3939 "isConstructor" : false,
3940 "isPrivate" : false,
3941 "memberOf" : "Roo.Element",
3950 "desc" : "The group the DD object is member of",
3951 "isOptional" : false
3956 "desc" : "The DD config object",
3957 "isOptional" : false
3960 "name" : "overrides",
3962 "desc" : "An object containing methods to override/implement on the DD object",
3963 "isOptional" : false
3969 "type" : "Roo.dd.DD",
3970 "desc" : "The DD object"
3975 "name" : "getComputedHeight",
3976 "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.",
3978 "isConstructor" : false,
3979 "isPrivate" : false,
3980 "memberOf" : "Roo.Element",
3997 "desc" : "Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)",
3999 "isConstructor" : false,
4000 "isPrivate" : false,
4001 "memberOf" : "Roo.Element",
4008 "name" : "selector",
4010 "desc" : "The simple selector to test",
4011 "isOptional" : false
4018 "desc" : "True if this element matches the selector, else false"
4024 "desc" : "Move this element relative to its current position.",
4026 "isConstructor" : false,
4027 "isPrivate" : false,
4028 "memberOf" : "Roo.Element",
4035 "name" : "direction",
4037 "desc" : "Possible values are: \"l\",\"left\" - \"r\",\"right\" - \"t\",\"top\",\"up\" - \"b\",\"bottom\",\"down\".",
4038 "isOptional" : false
4041 "name" : "distance",
4043 "desc" : "How far to move the element in pixels",
4044 "isOptional" : false
4048 "type" : "Boolean/Object",
4049 "desc" : "(optional) true for the default animation or a standard Element animation config object",
4050 "isOptional" : false
4056 "type" : "Roo.Element",
4063 "desc" : "Removes this element from the DOM and deletes it from the cache",
4065 "isConstructor" : false,
4066 "isPrivate" : false,
4067 "memberOf" : "Roo.Element",
4078 "name" : "getNextSibling",
4079 "desc" : "Gets the next sibling, skipping text nodes",
4081 "isConstructor" : false,
4082 "isPrivate" : false,
4083 "memberOf" : "Roo.Element",
4093 "type" : "HTMLElement",
4094 "desc" : "The next sibling or null"
4099 "name" : "getStyle",
4100 "desc" : "Normalizes currentStyle and computedStyle. This is not YUI getStyle, it is an optimised version.",
4102 "isConstructor" : false,
4103 "isPrivate" : false,
4104 "memberOf" : "Roo.Element",
4111 "name" : "property",
4113 "desc" : "The style property whose value is returned.",
4114 "isOptional" : false
4121 "desc" : "The current value of the style property for this element."
4126 "name" : "isBorderBox",
4127 "desc" : "Tests various css rules/browsers to determine if this element uses a border box",
4129 "isConstructor" : false,
4130 "isPrivate" : false,
4131 "memberOf" : "Roo.Element",
4147 "name" : "getPadding",
4148 "desc" : "Gets the width of the padding(s) for the specified side(s)",
4150 "isConstructor" : false,
4151 "isPrivate" : false,
4152 "memberOf" : "Roo.Element",
4161 "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.",
4162 "isOptional" : false
4169 "desc" : "The padding of the sides passed added together"