2 "name" : "Roo.BasicDialog",
6 "desc" : "Lightweight Dialog Class. The code below shows the creation of a typical dialog using existing HTML markup:\n<pre><code>\nvar dlg = new Roo.BasicDialog(\"my-dlg\", {\n height: 200,\n width: 300,\n minHeight: 100,\n minWidth: 150,\n modal: true,\n proxyDrag: true,\n shadow: true\n});\ndlg.addKeyListener(27, dlg.hide, dlg); // ESC can also close the dialog\ndlg.addButton('OK', dlg.hide, dlg); // Could call a save function instead of hiding\ndlg.addButton('Cancel', dlg.hide, dlg);\ndlg.show();\n</code></pre>\n <b>A Dialog should always be a direct child of the body element.</b>",
10 "memberOf" : "BasicDialog",
18 "type" : "String/HTMLElement/Roo.Element",
19 "desc" : "The container element or DOM node, or its id",
25 "desc" : "Configuration options",
36 "desc" : "The default top page coordinate of the dialog (defaults to center screen)",
42 "desc" : "True to show the dialog modally, preventing user interaction with the rest of the page (defaults to false)",
48 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
49 "memberOf" : "Roo.util.Observable"
52 "name" : "animateTarget",
53 "type" : "String/Element",
54 "desc" : "Id or element from which the dialog should animate while opening\n(defaults to null with no animation)",
59 "type" : "Boolean/String",
60 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right\nshadow (defaults to false)",
64 "name" : "autoScroll",
66 "desc" : "True to allow the dialog body contents to overflow and display scrollbars (defaults to false)",
70 "name" : "collapsible",
72 "desc" : "False to remove the built-in top-right corner collapse button (defaults to true)",
78 "desc" : "If true, all elements with class 'x-dlg-tab' will get automatically converted to tabs (defaults to false)",
82 "name" : "shadowOffset",
84 "desc" : "The number of pixels to offset the shadow if displayed (defaults to 5)",
90 "desc" : "Array of buttons",
94 "name" : "minButtonWidth",
96 "desc" : "Minimum width of all dialog buttons (defaults to 75)",
102 "desc" : "Default text to display in the title bar (defaults to null)",
108 "desc" : "The minimum allowable width for a resizable dialog (defaults to 200)",
112 "name" : "buttonAlign",
114 "desc" : "Valid values are \"left,\" \"center\" and \"right\" (defaults to \"right\")",
118 "name" : "autoCreate",
119 "type" : "Boolean/DomHelper",
120 "desc" : "True to auto create from scratch, or using a DomHelper Object (defaults to false)",
124 "name" : "minHeight",
126 "desc" : "The minimum allowable height for a resizable dialog (defaults to 80)",
130 "name" : "proxyDrag",
132 "desc" : "True to drag a lightweight proxy element rather than the dialog itself, used when\ndraggable = true (defaults to false)",
138 "desc" : "True to create an iframe shim that prevents selects from showing through (defaults to false)",
144 "desc" : "Width of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
148 "name" : "constraintoviewport",
150 "desc" : "True to keep the dialog constrained within the visible viewport boundaries (defaults to true)",
154 "name" : "syncHeightBeforeShow",
156 "desc" : "True to cause the dimensions to be recalculated before the dialog is shown (defaults to false)",
162 "desc" : "The tag name of tab elements, used when autoTabs = true (defaults to 'div')",
166 "name" : "resizable",
168 "desc" : "False to disable manual dialog resizing (defaults to true)",
174 "desc" : "False to remove the built-in top-right corner close button (defaults to true)",
178 "name" : "fixedcenter",
180 "desc" : "True to ensure that anytime the dialog is shown or resized it gets centered (defaults to false)",
186 "desc" : "Height of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
190 "name" : "resizeHandles",
192 "desc" : "Which resize handles to display - see the {@link Roo.Resizable} handles config\nproperty for valid values (defaults to 'all')",
198 "desc" : "The default left page coordinate of the dialog (defaults to center screen)",
202 "name" : "draggable",
204 "desc" : "False to disable dragging of the dialog within the viewport (defaults to true)",
212 "desc" : "Expands a collapsed dialog back to its normal state. Equivalent to the user\nclicking the expand dialog button.",
213 "sig" : "()\n{\n\n}",
217 "isConstructor" : false,
231 "desc" : "Aligns the dialog to the specified element",
232 "sig" : "(element, position, offsets)",
236 "isConstructor" : false,
247 "type" : "String/HTMLElement/Roo.Element",
248 "desc" : "The element to align to.",
254 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details).",
260 "desc" : "(optional) Offset the positioning by [x, y]",
267 "type" : "Roo.BasicDialog",
275 "desc" : "Sets the dialog title text",
280 "isConstructor" : false,
292 "desc" : "The title text to display",
299 "type" : "Roo.BasicDialog",
305 "name" : "isVisible",
307 "desc" : "Returns true if the dialog is visible",
308 "sig" : "()\n{\n\n}",
312 "isConstructor" : false,
332 "desc" : "Resizes the dialog.",
333 "sig" : "(width, height)",
337 "isConstructor" : false,
362 "type" : "Roo.BasicDialog",
370 "desc" : "Centers this dialog in the viewport",
371 "sig" : "()\n{\n\n}",
375 "isConstructor" : false,
387 "type" : "Roo.BasicDialog",
395 "desc" : "Collapses the dialog to its minimized state (only the title bar is visible).\nEquivalent to the user clicking the collapse dialog button.",
396 "sig" : "()\n{\n\n}",
400 "isConstructor" : false,
414 "desc" : "Reinitializes the tabs component, clearing out old tabs and finding new ones.",
415 "sig" : "()\n{\n\n}",
419 "isConstructor" : false,
431 "type" : "Roo.TabPanel",
432 "desc" : "The tabs component"
439 "desc" : "Brings this dialog to the front of any other visible dialogs",
440 "sig" : "()\n{\n\n}",
444 "isConstructor" : false,
456 "type" : "Roo.BasicDialog",
464 "desc" : "Moves the dialog's top-left corner to the specified point",
469 "isConstructor" : false,
494 "type" : "Roo.BasicDialog",
502 "desc" : "Hides the dialog.",
503 "sig" : "(callback)",
507 "isConstructor" : false,
519 "desc" : "(optional) Function to call when the dialog is hidden",
526 "type" : "Roo.BasicDialog",
534 "desc" : "Destroys this dialog and all its supporting elements (including any tabs, shim,\nshadow, proxy, mask, etc.) Also removes all event listeners.",
535 "sig" : "(removeEl)",
539 "isConstructor" : false,
551 "desc" : "(optional) true to remove the element from the DOM",
560 "desc" : "Shows the dialog.",
561 "sig" : "(animateTarget)",
565 "isConstructor" : false,
575 "name" : "animateTarget",
576 "type" : "String/HTMLElement/Roo.Element",
577 "desc" : "(optional) Reset the animation target",
584 "type" : "Roo.BasicDialog",
592 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
593 "sig" : "(element, position, offsets, monitorScroll)",
597 "isConstructor" : false,
608 "type" : "String/HTMLElement/Roo.Element",
609 "desc" : "The element to align to.",
615 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details)",
621 "desc" : "(optional) Offset the positioning by [x, y]",
625 "name" : "monitorScroll",
626 "type" : "Boolean/Number",
627 "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).",
634 "type" : "Roo.BasicDialog",
640 "name" : "addButton",
642 "desc" : "Adds a button to the footer section of the dialog.",
643 "sig" : "(config, handler, scope)",
647 "isConstructor" : false,
658 "type" : "String/Object",
659 "desc" : "A string becomes the button text, an object can either be a Button config\nobject or a valid Roo.DomHelper element config",
665 "desc" : "The function called when the button is clicked",
671 "desc" : "(optional) The scope of the handler function (accepts position as a property)",
678 "type" : "Roo.Button",
679 "desc" : "The new button"
684 "name" : "addKeyListener",
686 "desc" : "Adds a key listener for when this dialog is displayed. This allows you to hook in a function that will be\nexecuted in response to a particular key being pressed while the dialog is active.",
687 "sig" : "(key, fn, scope)",
691 "isConstructor" : false,
702 "type" : "Number/Array/Object",
703 "desc" : "Either 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)}",
709 "desc" : "The function to call",
715 "desc" : "(optional) The scope of the function",
722 "type" : "Roo.BasicDialog",
730 "desc" : "Focuses the dialog. If a defaultButton is set, it will receive focus, otherwise the\ndialog itself will receive focus.",
731 "sig" : "()\n{\n\n}",
735 "isConstructor" : false,
749 "desc" : "Returns the TabPanel component (creates it if it doesn't exist).\nNote: If you wish to simply check for the existence of tabs without creating them,\ncheck for a null 'tabs' property.",
750 "sig" : "()\n{\n\n}",
754 "isConstructor" : false,
766 "type" : "Roo.TabPanel",
767 "desc" : "The tabs component"
772 "name" : "setDefaultButton",
774 "desc" : "Sets the default button to be focused when the dialog is displayed.",
779 "isConstructor" : false,
790 "type" : "Roo.BasicDialog.Button",
791 "desc" : "The button object returned by {@link #addButton}",
798 "type" : "Roo.BasicDialog",
806 "desc" : "Sends this dialog to the back (under) of any other visible dialogs",
807 "sig" : "()\n{\n\n}",
811 "isConstructor" : false,
823 "type" : "Roo.BasicDialog",
829 "name" : "setContentSize",
831 "desc" : "Resizes the dialog to fit the specified content size.",
832 "sig" : "(width, height)",
836 "isConstructor" : false,
861 "type" : "Roo.BasicDialog",
867 "name" : "restoreState",
869 "desc" : "Restores the previous state of the dialog if Roo.state is configured.",
870 "sig" : "()\n{\n\n}",
874 "isConstructor" : false,
886 "type" : "Roo.BasicDialog",
894 "desc" : "Returns the element for this dialog",
895 "sig" : "()\n{\n\n}",
899 "isConstructor" : false,
911 "type" : "Roo.Element",
912 "desc" : "The underlying dialog Element"
917 "name" : "purgeListeners",
919 "desc" : "Removes all listeners for this object",
920 "sig" : "()\n{\n\n}",
922 "memberOf" : "Roo.util.Observable",
924 "isConstructor" : false,
938 "desc" : "Appends an event handler to this element (shorthand for addListener)",
939 "sig" : "(eventName, handler, scope, options)",
941 "memberOf" : "Roo.util.Observable",
943 "isConstructor" : false,
953 "name" : "eventName",
955 "desc" : "The type of event to listen for",
961 "desc" : "The method the event invokes",
967 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
973 "desc" : "(optional)",
982 "desc" : "Removes a listener (shorthand for removeListener)",
983 "sig" : "(eventName, handler, scope)",
985 "memberOf" : "Roo.util.Observable",
987 "isConstructor" : false,
997 "name" : "eventName",
999 "desc" : "The type of event to listen for",
1000 "isOptional" : false
1004 "type" : "Function",
1005 "desc" : "The handler to remove",
1006 "isOptional" : false
1011 "desc" : "(optional) The scope (this object) for the handler",
1012 "isOptional" : false
1018 "name" : "addEvents",
1019 "type" : "function",
1020 "desc" : "Used to define events on this Observable",
1023 "memberOf" : "Roo.util.Observable",
1025 "isConstructor" : false,
1026 "isPrivate" : false,
1037 "desc" : "The object with the events defined",
1038 "isOptional" : false
1044 "name" : "releaseCapture",
1045 "type" : "function",
1046 "desc" : "Removes <b>all</b> added captures from the Observable.",
1049 "memberOf" : "Roo.util.Observable",
1051 "isConstructor" : false,
1052 "isPrivate" : false,
1062 "type" : "Observable",
1063 "desc" : "The Observable to release",
1064 "isOptional" : false
1070 "name" : "removeListener",
1071 "type" : "function",
1072 "desc" : "Removes a listener",
1073 "sig" : "(eventName, handler, scope)",
1075 "memberOf" : "Roo.util.Observable",
1077 "isConstructor" : false,
1078 "isPrivate" : false,
1087 "name" : "eventName",
1089 "desc" : "The type of event to listen for",
1090 "isOptional" : false
1094 "type" : "Function",
1095 "desc" : "The handler to remove",
1096 "isOptional" : false
1101 "desc" : "(optional) The scope (this object) for the handler",
1102 "isOptional" : false
1108 "name" : "fireEvent",
1109 "type" : "function",
1110 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1111 "sig" : "(eventName, args)",
1113 "memberOf" : "Roo.util.Observable",
1115 "isConstructor" : false,
1116 "isPrivate" : false,
1125 "name" : "eventName",
1128 "isOptional" : false
1132 "type" : "Object...",
1133 "desc" : "Variable number of parameters are passed to handlers",
1134 "isOptional" : false
1141 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1146 "name" : "hasListener",
1147 "type" : "function",
1148 "desc" : "Checks to see if this object has any listeners for a specified event",
1149 "sig" : "(eventName)",
1151 "memberOf" : "Roo.util.Observable",
1153 "isConstructor" : false,
1154 "isPrivate" : false,
1163 "name" : "eventName",
1165 "desc" : "The name of the event to check for",
1166 "isOptional" : false
1173 "desc" : "True if the event is being listened for, else false"
1179 "type" : "function",
1180 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
1181 "sig" : "(o, fn, scope)",
1183 "memberOf" : "Roo.util.Observable",
1185 "isConstructor" : false,
1186 "isPrivate" : false,
1196 "type" : "Observable",
1197 "desc" : "The Observable to capture",
1198 "isOptional" : false
1202 "type" : "Function",
1203 "desc" : "The function to call",
1204 "isOptional" : false
1209 "desc" : "(optional) The scope (this object) for the fn",
1210 "isOptional" : false
1216 "name" : "addListener",
1217 "type" : "function",
1218 "desc" : "Appends an event handler to this component",
1219 "sig" : "(eventName, handler, scope, options)",
1221 "memberOf" : "Roo.util.Observable",
1223 "isConstructor" : false,
1224 "isPrivate" : false,
1233 "name" : "eventName",
1235 "desc" : "The type of event to listen for",
1236 "isOptional" : false
1240 "type" : "Function",
1241 "desc" : "The method the event invokes",
1242 "isOptional" : false
1247 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1248 "isOptional" : false
1253 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
1254 "isOptional" : false
1263 "type" : "function",
1264 "desc" : "Fires when this dialog is moved by the user.",
1265 "sig" : "function (_self, x, y)\n{\n\n}",
1274 "type" : "Roo.BasicDialog",
1276 "isOptional" : false
1281 "desc" : "The new page X",
1282 "isOptional" : false
1287 "desc" : "The new page Y",
1288 "isOptional" : false
1295 "type" : "function",
1296 "desc" : "Fires when this dialog is resized by the user.",
1297 "sig" : "function (_self, width, height)\n{\n\n}",
1306 "type" : "Roo.BasicDialog",
1308 "isOptional" : false
1313 "desc" : "The new width",
1314 "isOptional" : false
1319 "desc" : "The new height",
1320 "isOptional" : false
1326 "name" : "beforehide",
1327 "type" : "function",
1328 "desc" : "Fires before this dialog is hidden.",
1329 "sig" : "function (_self)\n{\n\n}",
1338 "type" : "Roo.BasicDialog",
1340 "isOptional" : false
1346 "name" : "beforeshow",
1347 "type" : "function",
1348 "desc" : "Fires before this dialog is shown.",
1349 "sig" : "function (_self)\n{\n\n}",
1358 "type" : "Roo.BasicDialog",
1360 "isOptional" : false
1367 "type" : "function",
1368 "desc" : "Fires when this dialog is hidden.",
1369 "sig" : "function (_self)\n{\n\n}",
1378 "type" : "Roo.BasicDialog",
1380 "isOptional" : false
1387 "type" : "function",
1388 "desc" : "Fires when this dialog is shown.",
1389 "sig" : "function (_self)\n{\n\n}",
1398 "type" : "Roo.BasicDialog",
1400 "isOptional" : false
1407 "type" : "function",
1408 "desc" : "Fires when a key is pressed",
1409 "sig" : "function (_self, e)\n{\n\n}",
1418 "type" : "Roo.BasicDialog",
1420 "isOptional" : false
1424 "type" : "Roo.EventObject",
1426 "isOptional" : false