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>",
13 "name" : "getCenterXY",
14 "desc" : "Calculates the x, y to center this element on the screen",
16 "isConstructor" : false,
18 "memberOf" : "Roo.Element",
29 "desc" : "The x, y values [x, y]"
35 "desc" : "Returns the current scroll position of the element.",
37 "isConstructor" : false,
39 "memberOf" : "Roo.Element",
50 "desc" : "An object containing the scroll position in the format {left: (scrollLeft), top: (scrollTop)}"
55 "name" : "createShim",
56 "desc" : "Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.",
58 "isConstructor" : false,
60 "memberOf" : "Roo.Element",
70 "type" : "Roo.Element",
71 "desc" : "The new shim element"
77 "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().",
79 "isConstructor" : false,
81 "memberOf" : "Roo.Element",
90 "desc" : "Either \"left\" for scrollLeft values or \"top\" for scrollTop values.",
96 "desc" : "The new scroll value",
101 "type" : "Boolean/Object",
102 "desc" : "(optional) true for the default animation or a standard Element animation config object",
115 "name" : "removeAllListeners",
116 "desc" : "Removes all previous added listeners from this element",
118 "isConstructor" : false,
120 "memberOf" : "Roo.Element",
130 "type" : "Roo.Element",
137 "desc" : "Wrapper for setting style properties, also takes single object parameter of multiple styles.",
139 "isConstructor" : false,
141 "memberOf" : "Roo.Element",
149 "type" : "String/Object",
150 "desc" : "The style property to be set, or an object of multiple styles.",
156 "desc" : "(optional) The value to apply to the given property, or null if an object was passed.",
163 "type" : "Roo.Element",
170 "desc" : "Appends an event handler (Shorthand for addListener)",
172 "isConstructor" : false,
174 "memberOf" : "Roo.Element",
181 "name" : "eventName",
183 "desc" : "The type of event to append",
189 "desc" : "The method the event invokes",
195 "desc" : "(optional) The scope (this object) of the fn",
201 "desc" : "(optional)An object with standard {@link Roo.EventManager#addListener} options",
209 "name" : "addClassOnClick",
210 "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)",
212 "isConstructor" : false,
214 "memberOf" : "Roo.Element",
221 "name" : "className",
230 "type" : "Roo.Element",
236 "name" : "getBorderWidth",
237 "desc" : "Gets the width of the border(s) for the specified side(s)",
239 "isConstructor" : false,
241 "memberOf" : "Roo.Element",
250 "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.",
258 "desc" : "The width of the sides passed added together"
264 "desc" : "Scrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.",
266 "isConstructor" : false,
268 "memberOf" : "Roo.Element",
275 "name" : "direction",
277 "desc" : "Possible values are: \"l\",\"left\" - \"r\",\"right\" - \"t\",\"top\",\"up\" - \"b\",\"bottom\",\"down\".",
283 "desc" : "How far to scroll the element in pixels",
288 "type" : "Boolean/Object",
289 "desc" : "(optional) true for the default animation or a standard Element animation config object",
297 "desc" : "Returns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go."
302 "name" : "addKeyMap",
303 "desc" : "Creates a KeyMap for this element",
305 "isConstructor" : false,
307 "memberOf" : "Roo.Element",
316 "desc" : "The KeyMap config. See {@link Roo.KeyMap} for more details",
323 "type" : "Roo.KeyMap",
324 "desc" : "The KeyMap created"
329 "name" : "createChild",
330 "desc" : "Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.",
332 "isConstructor" : false,
334 "memberOf" : "Roo.Element",
343 "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.",
347 "name" : "insertBefore",
348 "type" : "HTMLElement",
349 "desc" : "(optional) a child element of this element",
353 "name" : "returnDom",
355 "desc" : "(optional) true to return the dom node instead of creating an Element",
362 "type" : "Roo.Element",
363 "desc" : "The new child element"
369 "desc" : "Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.",
371 "isConstructor" : false,
373 "memberOf" : "Roo.Element",
380 "name" : "className",
381 "type" : "String/Array",
382 "desc" : "The CSS class to add, or an array of classes",
389 "type" : "Roo.Element",
396 "desc" : "Sets or Returns the value the dom attribute value",
398 "isConstructor" : false,
400 "memberOf" : "Roo.Element",
408 "type" : "String|Object",
409 "desc" : "The attribute name (or object to set multiple attributes)",
415 "desc" : "(optional) The value to set the attribute to",
423 "desc" : "The attribute value"
428 "name" : "setOpacity",
429 "desc" : "Set the opacity of the element",
431 "isConstructor" : false,
433 "memberOf" : "Roo.Element",
442 "desc" : "The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc",
447 "type" : "Boolean/Object",
448 "desc" : "(optional) true for the default animation or a standard Element animation config object",
455 "type" : "Roo.Element",
462 "desc" : "Set the size of the element. If animation is true, both width an height will be animated concurrently.",
464 "isConstructor" : false,
466 "memberOf" : "Roo.Element",
475 "desc" : "The new width",
481 "desc" : "The new height",
486 "type" : "Boolean/Object",
487 "desc" : "(optional) true for the default animation or a standard Element animation config object",
494 "type" : "Roo.Element",
501 "desc" : "Removes an event handler from this element (shorthand for removeListener)",
503 "isConstructor" : false,
505 "memberOf" : "Roo.Element",
512 "name" : "eventName",
514 "desc" : "the type of event to remove",
520 "desc" : "the method the event invokes",
527 "type" : "Roo.Element",
534 "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.",
536 "isConstructor" : false,
538 "memberOf" : "Roo.Element",
547 "desc" : "The simple selector to test",
552 "type" : "Number/String/HTMLElement/Element",
553 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
560 "type" : "Roo.Element",
561 "desc" : "The matching DOM node (or null if no match was found)"
567 "desc" : "Forces the browser to repaint this element",
569 "isConstructor" : false,
571 "memberOf" : "Roo.Element",
581 "type" : "Roo.Element",
587 "name" : "translatePoints",
588 "desc" : "Translates the passed page coordinates into left/top css values for this element",
590 "isConstructor" : false,
592 "memberOf" : "Roo.Element",
600 "type" : "Number/Array",
601 "desc" : "The page x or an array containing [x, y]",
607 "desc" : "The page y",
615 "desc" : "An object with left and top properties. e.g. {left: (value), top: (value)}"
620 "name" : "createProxy",
621 "desc" : "Creates a proxy element of this element",
623 "isConstructor" : false,
625 "memberOf" : "Roo.Element",
633 "type" : "String/Object",
634 "desc" : "The class name of the proxy element or a DomHelper config object",
639 "type" : "String/HTMLElement",
640 "desc" : "(optional) The element or element id to render the proxy to (defaults to document.body)",
646 "desc" : "(optional) True to align and size the proxy to this element now (defaults to false)",
653 "type" : "Roo.Element",
654 "desc" : "The new proxy element"
660 "desc" : "Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id).",
662 "isConstructor" : false,
664 "memberOf" : "Roo.Element",
673 "desc" : "The CSS selector",
677 "name" : "returnDom",
679 "desc" : "(optional) True to return the DOM node instead of Roo.Element (defaults to false)",
686 "type" : "HTMLElement/Roo.Element",
687 "desc" : "The child Roo.Element (or DOM node if returnDom = true)"
693 "desc" : "Return a box {x, y, width, height} that can be used to set another elements\nsize/location to match this element.",
695 "isConstructor" : false,
697 "memberOf" : "Roo.Element",
704 "name" : "contentBox",
706 "desc" : "(optional) If true a box for the content of the element is returned.",
712 "desc" : "(optional) If true the element's left and top are returned instead of page x/y.",
720 "desc" : "box An object in the format {x, y, width, height}"
726 "desc" : "Toggles the element's visibility or display, depending on visibility mode.",
728 "isConstructor" : false,
730 "memberOf" : "Roo.Element",
738 "type" : "Boolean/Object",
739 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
746 "type" : "Roo.Element",
752 "name" : "setBounds",
753 "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.",
755 "isConstructor" : false,
757 "memberOf" : "Roo.Element",
766 "desc" : "X value for new position (coordinates are page-based)",
772 "desc" : "Y value for new position (coordinates are page-based)",
778 "desc" : "The new width",
784 "desc" : "The new height",
789 "type" : "Boolean/Object",
790 "desc" : "(optional) true for the default animation or a standard Element animation config object",
797 "type" : "Roo.Element",
804 "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).",
806 "isConstructor" : false,
808 "memberOf" : "Roo.Element",
819 "desc" : "The X position of the element"
825 "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).",
827 "isConstructor" : false,
829 "memberOf" : "Roo.Element",
840 "desc" : "The Y position of the element"
846 "desc" : "Tries to focus the element. Any exceptions are caught and ignored.",
848 "isConstructor" : false,
850 "memberOf" : "Roo.Element",
860 "type" : "Roo.Element",
867 "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.",
869 "isConstructor" : false,
871 "memberOf" : "Roo.Element",
879 "type" : "String/HTMLElement/Element",
880 "desc" : "The id of the node, a DOM Node or an existing Element.",
888 "desc" : "The Element object"
893 "name" : "autoHeight",
894 "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.",
896 "isConstructor" : false,
898 "memberOf" : "Roo.Element",
907 "desc" : "(optional) Animate the transition (defaults to false)",
913 "desc" : "(optional) Length of the animation in seconds (defaults to .35)",
917 "name" : "onComplete",
919 "desc" : "(optional) Function to call when animation completes",
925 "desc" : "(optional) Easing method to use (defaults to easeOut)",
932 "type" : "Roo.Element",
938 "name" : "scrollIntoView",
939 "desc" : "Scrolls this element into view within the passed container.",
941 "isConstructor" : false,
943 "memberOf" : "Roo.Element",
950 "name" : "container",
951 "type" : "String/HTMLElement/Element",
952 "desc" : "(optional) The container element to scroll (defaults to document.body)",
958 "desc" : "(optional) False to disable horizontal scroll (defaults to true)",
965 "type" : "Roo.Element",
971 "name" : "getAlignToXY",
972 "desc" : "Gets the x,y coordinates to align this element with another element. See {@link #alignTo} for more info on the\nsupported position values.",
974 "isConstructor" : false,
976 "memberOf" : "Roo.Element",
984 "type" : "String/HTMLElement/Roo.Element",
985 "desc" : "The element to align to.",
991 "desc" : "The position to align to.",
997 "desc" : "(optional) Offset the positioning by [x, y]",
1010 "name" : "clearOpacity",
1011 "desc" : "Clears any opacity settings from this element. Required in some cases for IE.",
1013 "isConstructor" : false,
1014 "isPrivate" : false,
1015 "memberOf" : "Roo.Element",
1025 "type" : "Roo.Element",
1031 "name" : "setPositioning",
1032 "desc" : "Set positioning with an object returned by getPositioning().",
1034 "isConstructor" : false,
1035 "isPrivate" : false,
1036 "memberOf" : "Roo.Element",
1046 "isOptional" : false
1052 "type" : "Roo.Element",
1058 "name" : "getMargins",
1059 "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)",
1061 "isConstructor" : false,
1062 "isPrivate" : false,
1063 "memberOf" : "Roo.Element",
1072 "desc" : "(optional) Any combination of l, r, t, b to get the sum of those sides",
1073 "isOptional" : false
1079 "type" : "Object/Number",
1085 "name" : "setRegion",
1086 "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.",
1088 "isConstructor" : false,
1089 "isPrivate" : false,
1090 "memberOf" : "Roo.Element",
1098 "type" : "Roo.lib.Region",
1099 "desc" : "The region to fill",
1100 "isOptional" : false
1104 "type" : "Boolean/Object",
1105 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1106 "isOptional" : false
1112 "type" : "Roo.Element",
1118 "name" : "getAttributeNS",
1119 "desc" : "Returns the value of a namespaced attribute from the element's underlying DOM node.",
1121 "isConstructor" : false,
1122 "isPrivate" : false,
1123 "memberOf" : "Roo.Element",
1130 "name" : "namespace",
1132 "desc" : "The namespace in which to look for the attribute",
1133 "isOptional" : false
1138 "desc" : "The attribute name",
1139 "isOptional" : false
1146 "desc" : "The attribute value"
1152 "desc" : "Sets the element's left position directly using CSS style (instead of {@link #setX}).",
1154 "isConstructor" : false,
1155 "isPrivate" : false,
1156 "memberOf" : "Roo.Element",
1165 "desc" : "The left CSS property value",
1166 "isOptional" : false
1172 "type" : "Roo.Element",
1179 "desc" : "Direct access to the UpdateManager update() method (takes the same parameters).",
1181 "isConstructor" : false,
1182 "isPrivate" : false,
1183 "memberOf" : "Roo.Element",
1191 "type" : "String/Function",
1192 "desc" : "The url for this request or a function to call to get the url",
1193 "isOptional" : false
1197 "type" : "String/Object",
1198 "desc" : "(optional) The parameters to pass as either a url encoded string \"param1=1&param2=2\" or an object {param1: 1, param2: 2}",
1199 "isOptional" : false
1202 "name" : "callback",
1203 "type" : "Function",
1204 "desc" : "(optional) Callback when transaction is complete - called with signature (oElement, bSuccess)",
1205 "isOptional" : false
1208 "name" : "discardUrl",
1210 "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.",
1211 "isOptional" : false
1217 "type" : "Roo.Element",
1223 "name" : "replaceClass",
1224 "desc" : "Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.",
1226 "isConstructor" : false,
1227 "isPrivate" : false,
1228 "memberOf" : "Roo.Element",
1235 "name" : "oldClassName",
1237 "desc" : "The CSS class to replace",
1238 "isOptional" : false
1241 "name" : "newClassName",
1243 "desc" : "The replacement CSS class",
1244 "isOptional" : false
1250 "type" : "Roo.Element",
1256 "name" : "initDDTarget",
1257 "desc" : "Initializes a {@link Roo.dd.DDTarget} object for this element.",
1259 "isConstructor" : false,
1260 "isPrivate" : false,
1261 "memberOf" : "Roo.Element",
1270 "desc" : "The group the DDTarget object is member of",
1271 "isOptional" : false
1276 "desc" : "The DDTarget config object",
1277 "isOptional" : false
1280 "name" : "overrides",
1282 "desc" : "An object containing methods to override/implement on the DDTarget object",
1283 "isOptional" : false
1289 "type" : "Roo.dd.DDTarget",
1290 "desc" : "The DDTarget object"
1295 "name" : "setHeight",
1296 "desc" : "Set the height of the element",
1298 "isConstructor" : false,
1299 "isPrivate" : false,
1300 "memberOf" : "Roo.Element",
1309 "desc" : "The new height",
1310 "isOptional" : false
1314 "type" : "Boolean/Object",
1315 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1316 "isOptional" : false
1322 "type" : "Roo.Element",
1329 "desc" : "Removes worthless text nodes",
1331 "isConstructor" : false,
1332 "isPrivate" : false,
1333 "memberOf" : "Roo.Element",
1340 "name" : "forceReclean",
1342 "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.",
1343 "isOptional" : false
1350 "name" : "getPositioning",
1351 "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.",
1353 "isConstructor" : false,
1354 "isPrivate" : false,
1355 "memberOf" : "Roo.Element",
1372 "desc" : "Update the innerHTML of this element, optionally searching for and processing scripts",
1374 "isConstructor" : false,
1375 "isPrivate" : false,
1376 "memberOf" : "Roo.Element",
1385 "desc" : "The new HTML",
1386 "isOptional" : false
1389 "name" : "loadScripts",
1391 "desc" : "(optional) true to look for and process scripts",
1392 "isOptional" : false
1395 "name" : "callback",
1396 "type" : "Function",
1397 "desc" : "For async script loading you can be noticed when the update completes",
1398 "isOptional" : false
1404 "type" : "Roo.Element",
1410 "name" : "contains",
1411 "desc" : "Returns true if this element is an ancestor of the passed element",
1413 "isConstructor" : false,
1414 "isPrivate" : false,
1415 "memberOf" : "Roo.Element",
1423 "type" : "HTMLElement/String",
1424 "desc" : "The element to check",
1425 "isOptional" : false
1432 "desc" : "True if this element is an ancestor of el, else false"
1437 "name" : "appendChild",
1438 "desc" : "Appends the passed element(s) to this element",
1440 "isConstructor" : false,
1441 "isPrivate" : false,
1442 "memberOf" : "Roo.Element",
1450 "type" : "String/HTMLElement/Array/Element/CompositeElement",
1452 "isOptional" : false
1458 "type" : "Roo.Element",
1464 "name" : "getValue",
1465 "desc" : "Returns the value of the \"value\" attribute",
1467 "isConstructor" : false,
1468 "isPrivate" : false,
1469 "memberOf" : "Roo.Element",
1476 "name" : "asNumber",
1478 "desc" : "true to parse the value as a number",
1479 "isOptional" : false
1485 "type" : "String/Number",
1491 "name" : "getRegion",
1492 "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).",
1494 "isConstructor" : false,
1495 "isPrivate" : false,
1496 "memberOf" : "Roo.Element",
1507 "desc" : "A Roo.lib.Region containing \"top, left, bottom, right\" member data."
1512 "name" : "anchorTo",
1513 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
1515 "isConstructor" : false,
1516 "isPrivate" : false,
1517 "memberOf" : "Roo.Element",
1525 "type" : "String/HTMLElement/Roo.Element",
1526 "desc" : "The element to align to.",
1527 "isOptional" : false
1530 "name" : "position",
1532 "desc" : "The position to align to.",
1533 "isOptional" : false
1538 "desc" : "(optional) Offset the positioning by [x, y]",
1539 "isOptional" : false
1543 "type" : "Boolean/Object",
1544 "desc" : "(optional) True for the default animation or a standard Element animation config object",
1545 "isOptional" : false
1548 "name" : "monitorScroll",
1549 "type" : "Boolean/Number",
1550 "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).",
1551 "isOptional" : false
1554 "name" : "callback",
1555 "type" : "Function",
1556 "desc" : "The function to call after the animation finishes",
1557 "isOptional" : false
1563 "type" : "Roo.Element",
1569 "name" : "removeClass",
1570 "desc" : "Removes one or more CSS classes from the element.",
1572 "isConstructor" : false,
1573 "isPrivate" : false,
1574 "memberOf" : "Roo.Element",
1581 "name" : "className",
1582 "type" : "String/Array",
1583 "desc" : "The CSS class to remove, or an array of classes",
1584 "isOptional" : false
1590 "type" : "Roo.Element",
1596 "name" : "radioClass",
1597 "desc" : "Adds one or more CSS classes to this element and removes the same class(es) from all siblings.",
1599 "isConstructor" : false,
1600 "isPrivate" : false,
1601 "memberOf" : "Roo.Element",
1608 "name" : "className",
1609 "type" : "String/Array",
1610 "desc" : "The CSS class to add, or an array of classes",
1611 "isOptional" : false
1617 "type" : "Roo.Element",
1623 "name" : "getWidth",
1624 "desc" : "Returns the offset width of the element",
1626 "isConstructor" : false,
1627 "isPrivate" : false,
1628 "memberOf" : "Roo.Element",
1635 "name" : "contentWidth",
1637 "desc" : "(optional) true to get the width minus borders and padding",
1638 "isOptional" : false
1645 "desc" : "The element's width"
1650 "name" : "insertBefore",
1651 "desc" : "Inserts this element before the passed element in the DOM",
1653 "isConstructor" : false,
1654 "isPrivate" : false,
1655 "memberOf" : "Roo.Element",
1663 "type" : "String/HTMLElement/Element",
1664 "desc" : "The element to insert before",
1665 "isOptional" : false
1671 "type" : "Roo.Element",
1677 "name" : "getHeight",
1678 "desc" : "Returns the offset height of the element",
1680 "isConstructor" : false,
1681 "isPrivate" : false,
1682 "memberOf" : "Roo.Element",
1689 "name" : "contentHeight",
1691 "desc" : "(optional) true to get the height minus borders and padding",
1692 "isOptional" : false
1699 "desc" : "The element's height"
1705 "desc" : "Sets the element's top position directly using CSS style (instead of {@link #setY}).",
1707 "isConstructor" : false,
1708 "isPrivate" : false,
1709 "memberOf" : "Roo.Element",
1718 "desc" : "The top CSS property value",
1719 "isOptional" : false
1725 "type" : "Roo.Element",
1731 "name" : "toggleClass",
1732 "desc" : "Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).",
1734 "isConstructor" : false,
1735 "isPrivate" : false,
1736 "memberOf" : "Roo.Element",
1743 "name" : "className",
1745 "desc" : "The CSS class to toggle",
1746 "isOptional" : false
1752 "type" : "Roo.Element",
1759 "desc" : "Creates and wraps this element with another element",
1761 "isConstructor" : false,
1762 "isPrivate" : false,
1763 "memberOf" : "Roo.Element",
1772 "desc" : "(optional) DomHelper element config object for the wrapper element or null for an empty div",
1773 "isOptional" : false
1776 "name" : "returnDom",
1778 "desc" : "(optional) True to return the raw DOM element instead of Roo.Element",
1779 "isOptional" : false
1785 "type" : "HTMLElement/Element",
1786 "desc" : "The newly created wrapper element"
1791 "name" : "setVisible",
1792 "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.",
1794 "isConstructor" : false,
1795 "isPrivate" : false,
1796 "memberOf" : "Roo.Element",
1805 "desc" : "Whether the element is visible",
1806 "isOptional" : false
1810 "type" : "Boolean/Object",
1811 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
1812 "isOptional" : false
1818 "type" : "Roo.Element",
1824 "name" : "addListener",
1825 "desc" : "Appends an event handler",
1827 "isConstructor" : false,
1828 "isPrivate" : false,
1829 "memberOf" : "Roo.Element",
1836 "name" : "eventName",
1838 "desc" : "The type of event to append",
1839 "isOptional" : false
1843 "type" : "Function",
1844 "desc" : "The method the event invokes",
1845 "isOptional" : false
1850 "desc" : "(optional) The scope (this object) of the fn",
1851 "isOptional" : false
1856 "desc" : "(optional)An object with standard {@link Roo.EventManager#addListener} options",
1857 "isOptional" : false
1864 "name" : "setWidth",
1865 "desc" : "Set the width of the element",
1867 "isConstructor" : false,
1868 "isPrivate" : false,
1869 "memberOf" : "Roo.Element",
1878 "desc" : "The new width",
1879 "isOptional" : false
1883 "type" : "Boolean/Object",
1884 "desc" : "(optional) true for the default animation or a standard Element animation config object",
1885 "isOptional" : false
1891 "type" : "Roo.Element",
1898 "desc" : "Centers the Element in either the viewport, or another Element.",
1900 "isConstructor" : false,
1901 "isPrivate" : false,
1902 "memberOf" : "Roo.Element",
1909 "name" : "centerIn",
1910 "type" : "String/HTMLElement/Roo.Element",
1911 "desc" : "(optional) The element in which to center the element.",
1912 "isOptional" : false
1919 "name" : "isVisible",
1920 "desc" : "Checks whether the element is currently visible using both visibility and display properties.",
1922 "isConstructor" : false,
1923 "isPrivate" : false,
1924 "memberOf" : "Roo.Element",
1933 "desc" : "(optional) True to walk the dom and see if parent elements are hidden (defaults to false)",
1934 "isOptional" : false
1941 "desc" : "True if the element is currently visible, else false"
1946 "name" : "findParent",
1947 "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)",
1949 "isConstructor" : false,
1950 "isPrivate" : false,
1951 "memberOf" : "Roo.Element",
1958 "name" : "selector",
1960 "desc" : "The simple selector to test",
1961 "isOptional" : false
1964 "name" : "maxDepth",
1965 "type" : "Number/String/HTMLElement/Element",
1966 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
1967 "isOptional" : false
1970 "name" : "returnEl",
1972 "desc" : "(optional) True to return a Roo.Element object instead of DOM node",
1973 "isOptional" : false
1979 "type" : "HTMLElement",
1980 "desc" : "The matching DOM node (or null if no match was found)"
1985 "name" : "addKeyListener",
1986 "desc" : "Convenience method for constructing a KeyMap",
1988 "isConstructor" : false,
1989 "isPrivate" : false,
1990 "memberOf" : "Roo.Element",
1998 "type" : "Number/Array/Object/String",
1999 "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)}",
2000 "isOptional" : false
2004 "type" : "Function",
2005 "desc" : "The function to call",
2006 "isOptional" : false
2011 "desc" : "(optional) The scope of the function",
2012 "isOptional" : false
2018 "type" : "Roo.KeyMap",
2019 "desc" : "The KeyMap created"
2024 "name" : "swallowEvent",
2025 "desc" : "Stops the specified event from bubbling and optionally prevents the default action",
2027 "isConstructor" : false,
2028 "isPrivate" : false,
2029 "memberOf" : "Roo.Element",
2036 "name" : "eventName",
2039 "isOptional" : false
2042 "name" : "preventDefault",
2044 "desc" : "(optional) true to prevent the default action too",
2045 "isOptional" : false
2051 "type" : "Roo.Element",
2057 "name" : "getStyles",
2058 "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'}.",
2060 "isConstructor" : false,
2061 "isPrivate" : false,
2062 "memberOf" : "Roo.Element",
2071 "desc" : "A style name",
2072 "isOptional" : false
2077 "desc" : "A style name",
2078 "isOptional" : false
2085 "desc" : "The style object"
2091 "desc" : "Returns the size of the element.",
2093 "isConstructor" : false,
2094 "isPrivate" : false,
2095 "memberOf" : "Roo.Element",
2102 "name" : "contentSize",
2104 "desc" : "(optional) true to get the width/size minus borders and padding",
2105 "isOptional" : false
2112 "desc" : "An object containing the element's size {width: (element width), height: (element height)}"
2117 "name" : "endMeasure",
2118 "desc" : "Restores displays to before beginMeasure was called",
2120 "isConstructor" : false,
2121 "isPrivate" : false,
2122 "memberOf" : "Roo.Element",
2132 "type" : "Roo.Element",
2138 "name" : "getViewSize",
2139 "desc" : "Returns the width and height of the viewport.",
2141 "isConstructor" : false,
2142 "isPrivate" : false,
2143 "memberOf" : "Roo.Element",
2154 "desc" : "An object containing the viewport's size {width: (viewport width), height: (viewport height)}"
2159 "name" : "addClassOnFocus",
2160 "desc" : "Sets up event handlers to add and remove a css class when this element has the focus",
2162 "isConstructor" : false,
2163 "isPrivate" : false,
2164 "memberOf" : "Roo.Element",
2171 "name" : "className",
2174 "isOptional" : false
2180 "type" : "Roo.Element",
2187 "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>",
2189 "isConstructor" : false,
2190 "isPrivate" : false,
2191 "memberOf" : "Roo.Element",
2199 "type" : "String/HTMLElement/Roo.Element",
2200 "desc" : "The element to align to.",
2201 "isOptional" : false
2204 "name" : "position",
2206 "desc" : "The position to align to.",
2207 "isOptional" : false
2212 "desc" : "(optional) Offset the positioning by [x, y]",
2213 "isOptional" : false
2217 "type" : "Boolean/Object",
2218 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2219 "isOptional" : false
2225 "type" : "Roo.Element",
2231 "name" : "insertAfter",
2232 "desc" : "Inserts this element after the passed element in the DOM",
2234 "isConstructor" : false,
2235 "isPrivate" : false,
2236 "memberOf" : "Roo.Element",
2244 "type" : "String/HTMLElement/Element",
2245 "desc" : "The element to insert after",
2246 "isOptional" : false
2252 "type" : "Roo.Element",
2259 "desc" : "Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See {@link #setVisible}.",
2261 "isConstructor" : false,
2262 "isPrivate" : false,
2263 "memberOf" : "Roo.Element",
2271 "type" : "Boolean/Object",
2272 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2273 "isOptional" : false
2279 "type" : "Roo.Element",
2285 "name" : "setBottom",
2286 "desc" : "Sets the element's CSS bottom style.",
2288 "isConstructor" : false,
2289 "isPrivate" : false,
2290 "memberOf" : "Roo.Element",
2299 "desc" : "The bottom CSS property value",
2300 "isOptional" : false
2306 "type" : "Roo.Element",
2312 "name" : "clearPositioning",
2313 "desc" : "Clear positioning back to the default when the document was loaded",
2315 "isConstructor" : false,
2316 "isPrivate" : false,
2317 "memberOf" : "Roo.Element",
2326 "desc" : "(optional) The value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.",
2327 "isOptional" : false
2333 "type" : "Roo.Element",
2339 "name" : "isDisplayed",
2340 "desc" : "Returns true if display is not \"none\"",
2342 "isConstructor" : false,
2343 "isPrivate" : false,
2344 "memberOf" : "Roo.Element",
2361 "desc" : "Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See {@link #setVisible}.",
2363 "isConstructor" : false,
2364 "isPrivate" : false,
2365 "memberOf" : "Roo.Element",
2373 "type" : "Boolean/Object",
2374 "desc" : "(optional) true for the default animation or a standard Element animation config object",
2375 "isOptional" : false
2381 "type" : "Roo.Element",
2387 "name" : "setLeftTop",
2388 "desc" : "Quick set left and top adding default units",
2390 "isConstructor" : false,
2391 "isPrivate" : false,
2392 "memberOf" : "Roo.Element",
2401 "desc" : "The left CSS property value",
2402 "isOptional" : false
2407 "desc" : "The top CSS property value",
2408 "isOptional" : false
2414 "type" : "Roo.Element",
2421 "desc" : "Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).",
2423 "isConstructor" : false,
2424 "isPrivate" : false,
2425 "memberOf" : "Roo.Element",
2432 "name" : "selector",
2434 "desc" : "The CSS selector",
2435 "isOptional" : false
2438 "name" : "returnDom",
2440 "desc" : "(optional) True to return the DOM node instead of Roo.Element (defaults to false)",
2441 "isOptional" : false
2447 "type" : "HTMLElement/Roo.Element",
2448 "desc" : "The child Roo.Element (or DOM node if returnDom = true)"
2454 "desc" : "Removes a previously applied mask. If removeEl is true the mask overlay is destroyed, otherwise\nit is cached for reuse.",
2456 "isConstructor" : false,
2457 "isPrivate" : false,
2458 "memberOf" : "Roo.Element",
2470 "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).",
2472 "isConstructor" : false,
2473 "isPrivate" : false,
2474 "memberOf" : "Roo.Element",
2483 "desc" : "X value for new position (coordinates are page-based)",
2484 "isOptional" : false
2489 "desc" : "Y value for new position (coordinates are page-based)",
2490 "isOptional" : false
2494 "type" : "Boolean/Object",
2495 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
2496 "isOptional" : false
2502 "type" : "Roo.Element",
2508 "name" : "addClassOnOver",
2509 "desc" : "Sets up event handlers to add and remove a css class when the mouse is over this element",
2511 "isConstructor" : false,
2512 "isPrivate" : false,
2513 "memberOf" : "Roo.Element",
2520 "name" : "className",
2523 "isOptional" : false
2526 "name" : "preventFlicker",
2528 "desc" : "(optional) If set to true, it prevents flickering by filtering\nmouseout events for children elements",
2529 "isOptional" : false
2535 "type" : "Roo.Element",
2542 "desc" : "Gets the left X coordinate",
2544 "isConstructor" : false,
2545 "isPrivate" : false,
2546 "memberOf" : "Roo.Element",
2555 "desc" : "True to get the local css position instead of page coordinate",
2556 "isOptional" : false
2568 "name" : "isScrollable",
2569 "desc" : "Returns true if this element is scrollable.",
2571 "isConstructor" : false,
2572 "isPrivate" : false,
2573 "memberOf" : "Roo.Element",
2590 "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.",
2592 "isConstructor" : false,
2593 "isPrivate" : false,
2594 "memberOf" : "Roo.Element",
2603 "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.",
2604 "isOptional" : false
2610 "type" : "Roo.Element",
2617 "desc" : "Replaces the passed element with this element",
2619 "isConstructor" : false,
2620 "isPrivate" : false,
2621 "memberOf" : "Roo.Element",
2629 "type" : "String/HTMLElement/Element",
2630 "desc" : "The element to replace",
2631 "isOptional" : false
2637 "type" : "Roo.Element",
2644 "desc" : "Creates a {@link Roo.CompositeElement} for child nodes based on the passed CSS selector (the selector should not contain an id).",
2646 "isConstructor" : false,
2647 "isPrivate" : false,
2648 "memberOf" : "Roo.Element",
2655 "name" : "selector",
2657 "desc" : "The CSS selector",
2658 "isOptional" : false
2663 "desc" : "(optional) True to create a unique Roo.Element for each child (defaults to false, which creates a single shared flyweight object)",
2664 "isOptional" : false
2670 "type" : "CompositeElement/CompositeElementLite",
2671 "desc" : "The composite element"
2676 "name" : "isMasked",
2677 "desc" : "Returns true if this element is masked",
2679 "isConstructor" : false,
2680 "isPrivate" : false,
2681 "memberOf" : "Roo.Element",
2697 "name" : "getUpdateManager",
2698 "desc" : "Gets this element's UpdateManager",
2700 "isConstructor" : false,
2701 "isPrivate" : false,
2702 "memberOf" : "Roo.Element",
2712 "type" : "Roo.UpdateManager",
2713 "desc" : "The UpdateManager"
2718 "name" : "insertHtml",
2719 "desc" : "Inserts an html fragment into this element",
2721 "isConstructor" : false,
2722 "isPrivate" : false,
2723 "memberOf" : "Roo.Element",
2732 "desc" : "Where to insert the html in relation to the this element - beforeBegin, afterBegin, beforeEnd, afterEnd.",
2733 "isOptional" : false
2738 "desc" : "The HTML fragment",
2739 "isOptional" : false
2742 "name" : "returnEl",
2744 "desc" : "True to return an Roo.Element",
2745 "isOptional" : false
2751 "type" : "HTMLElement/Roo.Element",
2752 "desc" : "The inserted node (or nearest related if more than 1 inserted)"
2758 "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.",
2760 "isConstructor" : false,
2761 "isPrivate" : false,
2762 "memberOf" : "Roo.Element",
2771 "desc" : "(optional) A message to display in the mask",
2772 "isOptional" : false
2777 "desc" : "(optional) A css class to apply to the msg element",
2778 "isOptional" : false
2785 "desc" : "The mask element"
2791 "desc" : "Gets the top Y coordinate",
2793 "isConstructor" : false,
2794 "isPrivate" : false,
2795 "memberOf" : "Roo.Element",
2804 "desc" : "True to get the local css position instead of page coordinate",
2805 "isOptional" : false
2817 "name" : "getBottom",
2818 "desc" : "Gets the bottom Y coordinate of the element (element Y position + element height)",
2820 "isConstructor" : false,
2821 "isPrivate" : false,
2822 "memberOf" : "Roo.Element",
2831 "desc" : "True to get the local css position instead of page coordinate",
2832 "isOptional" : false
2844 "name" : "getRight",
2845 "desc" : "Gets the right X coordinate of the element (element X position + element width)",
2847 "isConstructor" : false,
2848 "isPrivate" : false,
2849 "memberOf" : "Roo.Element",
2858 "desc" : "True to get the local css position instead of page coordinate",
2859 "isOptional" : false
2871 "name" : "beginMeasure",
2872 "desc" : "Temporarily enables offsets (width,height,x,y) for an element with display:none, use endMeasure() when done.",
2874 "isConstructor" : false,
2875 "isPrivate" : false,
2876 "memberOf" : "Roo.Element",
2886 "type" : "Roo.Element",
2892 "name" : "appendTo",
2893 "desc" : "Appends this element to the passed element",
2895 "isConstructor" : false,
2896 "isPrivate" : false,
2897 "memberOf" : "Roo.Element",
2905 "type" : "String/HTMLElement/Element",
2906 "desc" : "The new parent element",
2907 "isOptional" : false
2913 "type" : "Roo.Element",
2920 "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.",
2922 "isConstructor" : false,
2923 "isPrivate" : false,
2924 "memberOf" : "Roo.Element",
2932 "type" : "String/HTMLElement",
2933 "desc" : "The dom node or id",
2934 "isOptional" : false
2939 "desc" : "(optional) Allows for creation of named reusable flyweights to\n prevent conflicts (e.g. internally Roo uses \"_internal\")",
2940 "isOptional" : false
2947 "desc" : "The shared Element object"
2952 "name" : "hasClass",
2953 "desc" : "Checks if the specified CSS class exists on this element's DOM node.",
2955 "isConstructor" : false,
2956 "isPrivate" : false,
2957 "memberOf" : "Roo.Element",
2964 "name" : "className",
2966 "desc" : "The CSS class to check for",
2967 "isOptional" : false
2974 "desc" : "True if the class exists, else false"
2979 "name" : "findScrollableParent",
2980 "desc" : "Looks at the scrollable parent element",
2982 "isConstructor" : false,
2983 "isPrivate" : false,
2984 "memberOf" : "Roo.Element",
2995 "name" : "fitToParent",
2996 "desc" : "Sizes this element to its parent element's dimensions performing\nneccessary box adjustments.",
2998 "isConstructor" : false,
2999 "isPrivate" : false,
3000 "memberOf" : "Roo.Element",
3007 "name" : "monitorResize",
3009 "desc" : "(optional) If true maintains the fit when the browser window is resized.",
3010 "isOptional" : false
3013 "name" : "targetParent",
3014 "type" : "String/HTMLElment/Element",
3015 "desc" : "(optional) The target parent, default to the parentNode.",
3016 "isOptional" : false
3022 "type" : "Roo.Element",
3029 "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).",
3031 "isConstructor" : false,
3032 "isPrivate" : false,
3033 "memberOf" : "Roo.Element",
3042 "desc" : "Contains X & Y [x, y] values for new position (coordinates are page-based)",
3043 "isOptional" : false
3047 "type" : "Boolean/Object",
3048 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3049 "isOptional" : false
3055 "type" : "Roo.Element",
3062 "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).",
3064 "isConstructor" : false,
3065 "isPrivate" : false,
3066 "memberOf" : "Roo.Element",
3077 "desc" : "The XY position of the element"
3082 "name" : "unselectable",
3083 "desc" : "Disables text selection for this element (normalized across browsers)",
3085 "isConstructor" : false,
3086 "isPrivate" : false,
3087 "memberOf" : "Roo.Element",
3097 "type" : "Roo.Element",
3104 "desc" : "Tries to blur the element. Any exceptions are caught and ignored.",
3106 "isConstructor" : false,
3107 "isPrivate" : false,
3108 "memberOf" : "Roo.Element",
3118 "type" : "Roo.Element",
3124 "name" : "setRight",
3125 "desc" : "Sets the element's CSS right style.",
3127 "isConstructor" : false,
3128 "isPrivate" : false,
3129 "memberOf" : "Roo.Element",
3138 "desc" : "The right CSS property value",
3139 "isOptional" : false
3145 "type" : "Roo.Element",
3151 "name" : "findParentNode",
3152 "desc" : "Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)",
3154 "isConstructor" : false,
3155 "isPrivate" : false,
3156 "memberOf" : "Roo.Element",
3163 "name" : "selector",
3165 "desc" : "The simple selector to test",
3166 "isOptional" : false
3169 "name" : "maxDepth",
3170 "type" : "Number/String/HTMLElement/Element",
3171 "desc" : "(optional) The max depth to\n search as a number or element (defaults to 10 || document.body)",
3172 "isOptional" : false
3175 "name" : "returnEl",
3177 "desc" : "(optional) True to return a Roo.Element object instead of DOM node",
3178 "isOptional" : false
3184 "type" : "HTMLElement",
3185 "desc" : "The matching DOM node (or null if no match was found)"
3190 "name" : "position",
3191 "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.",
3193 "isConstructor" : false,
3194 "isPrivate" : false,
3195 "memberOf" : "Roo.Element",
3204 "desc" : "(optional) Positioning to use \"relative\", \"absolute\" or \"fixed\"",
3205 "isOptional" : false
3210 "desc" : "(optional) The zIndex to apply",
3211 "isOptional" : false
3216 "desc" : "(optional) Set the page X position",
3217 "isOptional" : false
3222 "desc" : "(optional) Set the page Y position",
3223 "isOptional" : false
3230 "name" : "getFrameWidth",
3231 "desc" : "Returns the sum width of the padding and borders for the passed \"sides\". See getBorderWidth()\n for more information about the sides.",
3233 "isConstructor" : false,
3234 "isPrivate" : false,
3235 "memberOf" : "Roo.Element",
3245 "isOptional" : false
3257 "name" : "setLocation",
3258 "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).",
3260 "isConstructor" : false,
3261 "isPrivate" : false,
3262 "memberOf" : "Roo.Element",
3271 "desc" : "X value for new position (coordinates are page-based)",
3272 "isOptional" : false
3277 "desc" : "Y value for new position (coordinates are page-based)",
3278 "isOptional" : false
3282 "type" : "Boolean/Object",
3283 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3284 "isOptional" : false
3290 "type" : "Roo.Element",
3297 "desc" : "Return clipping (overflow) to original clipping before clip() was called",
3299 "isConstructor" : false,
3300 "isPrivate" : false,
3301 "memberOf" : "Roo.Element",
3311 "type" : "Roo.Element",
3318 "desc" : "Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)",
3320 "isConstructor" : false,
3321 "isPrivate" : false,
3322 "memberOf" : "Roo.Element",
3331 "desc" : "The object with the attributes",
3332 "isOptional" : false
3337 "desc" : "(optional) false to override the default setAttribute to use expandos.",
3338 "isOptional" : false
3344 "type" : "Roo.Element",
3350 "name" : "setDisplayed",
3351 "desc" : "Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.",
3353 "isConstructor" : false,
3354 "isPrivate" : false,
3355 "memberOf" : "Roo.Element",
3364 "desc" : "Boolean value to display the element using its default display, or a string to set the display directly",
3365 "isOptional" : false
3371 "type" : "Roo.Element",
3377 "name" : "insertFirst",
3378 "desc" : "Inserts (or creates) an element (or DomHelper config) as the first child of the this element",
3380 "isConstructor" : false,
3381 "isPrivate" : false,
3382 "memberOf" : "Roo.Element",
3390 "type" : "String/HTMLElement/Element/Object",
3391 "desc" : "The id or element to insert or a DomHelper config to create and insert",
3392 "isOptional" : false
3398 "type" : "Roo.Element",
3399 "desc" : "The new child"
3405 "desc" : "Perform animation on this element.",
3407 "isConstructor" : false,
3408 "isPrivate" : false,
3409 "memberOf" : "Roo.Element",
3418 "desc" : "The YUI animation control args",
3419 "isOptional" : false
3422 "name" : "duration",
3424 "desc" : "(optional) How long the animation lasts in seconds (defaults to .35)",
3425 "isOptional" : false
3428 "name" : "onComplete",
3429 "type" : "Function",
3430 "desc" : "(optional) Function to call when animation completes",
3431 "isOptional" : false
3436 "desc" : "(optional) Easing method to use (defaults to 'easeOut')",
3437 "isOptional" : false
3440 "name" : "animType",
3442 "desc" : "(optional) 'run' is the default. Can also be 'color', 'motion', or 'scroll'",
3443 "isOptional" : false
3449 "type" : "Roo.Element",
3455 "name" : "enableDisplayMode",
3456 "desc" : "Convenience method for setVisibilityMode(Element.DISPLAY)",
3458 "isConstructor" : false,
3459 "isPrivate" : false,
3460 "memberOf" : "Roo.Element",
3469 "desc" : "(optional) What to set display to when visible",
3470 "isOptional" : false
3476 "type" : "Roo.Element",
3482 "name" : "getComputedWidth",
3483 "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.",
3485 "isConstructor" : false,
3486 "isPrivate" : false,
3487 "memberOf" : "Roo.Element",
3504 "desc" : "Store the current overflow setting and clip overflow on the element - use {@link #unclip} to remove",
3506 "isConstructor" : false,
3507 "isPrivate" : false,
3508 "memberOf" : "Roo.Element",
3518 "type" : "Roo.Element",
3524 "name" : "setVisibilityMode",
3525 "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.",
3527 "isConstructor" : false,
3528 "isPrivate" : false,
3529 "memberOf" : "Roo.Element",
3538 "desc" : "Element.VISIBILITY or Element.DISPLAY",
3539 "isOptional" : false
3545 "type" : "Roo.Element",
3551 "name" : "getColor",
3552 "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.",
3554 "isConstructor" : false,
3555 "isPrivate" : false,
3556 "memberOf" : "Roo.Element",
3565 "desc" : "The css attribute",
3566 "isOptional" : false
3569 "name" : "defaultValue",
3571 "desc" : "The default value to use when a valid color isn't found",
3572 "isOptional" : false
3577 "desc" : "(optional) defaults to #. Use an empty string when working with\nYUI color anims.",
3578 "isOptional" : false
3585 "name" : "insertSibling",
3586 "desc" : "Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element",
3588 "isConstructor" : false,
3589 "isPrivate" : false,
3590 "memberOf" : "Roo.Element",
3598 "type" : "String/HTMLElement/Element/Object",
3599 "desc" : "The id or element to insert or a DomHelper config to create and insert",
3600 "isOptional" : false
3605 "desc" : "(optional) 'before' or 'after' defaults to before",
3606 "isOptional" : false
3609 "name" : "returnDom",
3611 "desc" : "(optional) True to return the raw DOM element instead of Roo.Element",
3612 "isOptional" : false
3618 "type" : "Roo.Element",
3619 "desc" : "the inserted Element"
3624 "name" : "removeListener",
3625 "desc" : "Removes an event handler from this element",
3627 "isConstructor" : false,
3628 "isPrivate" : false,
3629 "memberOf" : "Roo.Element",
3636 "name" : "eventName",
3638 "desc" : "the type of event to remove",
3639 "isOptional" : false
3643 "type" : "Function",
3644 "desc" : "the method the event invokes",
3645 "isOptional" : false
3651 "type" : "Roo.Element",
3657 "name" : "applyStyles",
3658 "desc" : "More flexible version of {@link #setStyle} for setting style properties.",
3660 "isConstructor" : false,
3661 "isPrivate" : false,
3662 "memberOf" : "Roo.Element",
3670 "type" : "String/Object/Function",
3671 "desc" : "A style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.",
3672 "isOptional" : false
3678 "type" : "Roo.Element",
3684 "name" : "getPrevSibling",
3685 "desc" : "Gets the previous sibling, skipping text nodes",
3687 "isConstructor" : false,
3688 "isPrivate" : false,
3689 "memberOf" : "Roo.Element",
3699 "type" : "HTMLElement",
3700 "desc" : "The previous sibling or null"
3706 "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.",
3708 "isConstructor" : false,
3709 "isPrivate" : false,
3710 "memberOf" : "Roo.Element",
3719 "desc" : "The box to fill {x, y, width, height}",
3720 "isOptional" : false
3725 "desc" : "(optional) Whether to adjust for box-model issues automatically",
3726 "isOptional" : false
3730 "type" : "Boolean/Object",
3731 "desc" : "(optional) true for the default animation or a standard Element animation config object",
3732 "isOptional" : false
3738 "type" : "Roo.Element",
3744 "name" : "initDDProxy",
3745 "desc" : "Initializes a {@link Roo.dd.DDProxy} object for this element.",
3747 "isConstructor" : false,
3748 "isPrivate" : false,
3749 "memberOf" : "Roo.Element",
3758 "desc" : "The group the DDProxy object is member of",
3759 "isOptional" : false
3764 "desc" : "The DDProxy config object",
3765 "isOptional" : false
3768 "name" : "overrides",
3770 "desc" : "An object containing methods to override/implement on the DDProxy object",
3771 "isOptional" : false
3777 "type" : "Roo.dd.DDProxy",
3778 "desc" : "The DDProxy object"
3784 "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).",
3786 "isConstructor" : false,
3787 "isPrivate" : false,
3788 "memberOf" : "Roo.Element",
3797 "desc" : "X position of the element",
3798 "isOptional" : false
3802 "type" : "Boolean/Object",
3803 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3804 "isOptional" : false
3810 "type" : "Roo.Element",
3817 "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).",
3819 "isConstructor" : false,
3820 "isPrivate" : false,
3821 "memberOf" : "Roo.Element",
3830 "desc" : "Y position of the element",
3831 "isOptional" : false
3835 "type" : "Boolean/Object",
3836 "desc" : "(optional) True for the default animation, or a standard Element animation config object",
3837 "isOptional" : false
3843 "type" : "Roo.Element",
3850 "desc" : "Selects child nodes based on the passed CSS selector (the selector should not contain an id).",
3852 "isConstructor" : false,
3853 "isPrivate" : false,
3854 "memberOf" : "Roo.Element",
3861 "name" : "selector",
3863 "desc" : "The CSS selector",
3864 "isOptional" : false
3871 "desc" : "An array of the matched nodes"
3876 "name" : "getAnchorXY",
3877 "desc" : "Gets the x,y coordinates specified by the anchor position on the element.",
3879 "isConstructor" : false,
3880 "isPrivate" : false,
3881 "memberOf" : "Roo.Element",
3890 "desc" : "(optional) The specified anchor position (defaults to \"c\"). See {@link #alignTo} for details on supported anchor positions.",
3891 "isOptional" : false
3896 "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)",
3897 "isOptional" : false
3902 "desc" : "(optional) True to get the local (element top/left-relative) anchor position instead of page coordinates",
3903 "isOptional" : false
3910 "desc" : "[x, y] An array containing the element's x and y coordinates"
3916 "desc" : "Initializes a {@link Roo.dd.DD} drag drop object for this element.",
3918 "isConstructor" : false,
3919 "isPrivate" : false,
3920 "memberOf" : "Roo.Element",
3929 "desc" : "The group the DD object is member of",
3930 "isOptional" : false
3935 "desc" : "The DD config object",
3936 "isOptional" : false
3939 "name" : "overrides",
3941 "desc" : "An object containing methods to override/implement on the DD object",
3942 "isOptional" : false
3948 "type" : "Roo.dd.DD",
3949 "desc" : "The DD object"
3954 "name" : "getComputedHeight",
3955 "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.",
3957 "isConstructor" : false,
3958 "isPrivate" : false,
3959 "memberOf" : "Roo.Element",
3976 "desc" : "Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)",
3978 "isConstructor" : false,
3979 "isPrivate" : false,
3980 "memberOf" : "Roo.Element",
3987 "name" : "selector",
3989 "desc" : "The simple selector to test",
3990 "isOptional" : false
3997 "desc" : "True if this element matches the selector, else false"
4003 "desc" : "Move this element relative to its current position.",
4005 "isConstructor" : false,
4006 "isPrivate" : false,
4007 "memberOf" : "Roo.Element",
4014 "name" : "direction",
4016 "desc" : "Possible values are: \"l\",\"left\" - \"r\",\"right\" - \"t\",\"top\",\"up\" - \"b\",\"bottom\",\"down\".",
4017 "isOptional" : false
4020 "name" : "distance",
4022 "desc" : "How far to move the element in pixels",
4023 "isOptional" : false
4027 "type" : "Boolean/Object",
4028 "desc" : "(optional) true for the default animation or a standard Element animation config object",
4029 "isOptional" : false
4035 "type" : "Roo.Element",
4042 "desc" : "Removes this element from the DOM and deletes it from the cache",
4044 "isConstructor" : false,
4045 "isPrivate" : false,
4046 "memberOf" : "Roo.Element",
4057 "name" : "getNextSibling",
4058 "desc" : "Gets the next sibling, skipping text nodes",
4060 "isConstructor" : false,
4061 "isPrivate" : false,
4062 "memberOf" : "Roo.Element",
4072 "type" : "HTMLElement",
4073 "desc" : "The next sibling or null"
4078 "name" : "getStyle",
4079 "desc" : "Normalizes currentStyle and computedStyle. This is not YUI getStyle, it is an optimised version.",
4081 "isConstructor" : false,
4082 "isPrivate" : false,
4083 "memberOf" : "Roo.Element",
4090 "name" : "property",
4092 "desc" : "The style property whose value is returned.",
4093 "isOptional" : false
4100 "desc" : "The current value of the style property for this element."
4105 "name" : "isBorderBox",
4106 "desc" : "Tests various css rules/browsers to determine if this element uses a border box",
4108 "isConstructor" : false,
4109 "isPrivate" : false,
4110 "memberOf" : "Roo.Element",
4126 "name" : "getPadding",
4127 "desc" : "Gets the width of the padding(s) for the specified side(s)",
4129 "isConstructor" : false,
4130 "isPrivate" : false,
4131 "memberOf" : "Roo.Element",
4140 "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.",
4141 "isOptional" : false
4148 "desc" : "The padding of the sides passed added together"