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>",
14 "desc" : "The default top page coordinate of the dialog (defaults to center screen)",
15 "memberOf" : "Roo.BasicDialog",
22 "desc" : "True to show the dialog modally, preventing user interaction with the rest of the page (defaults to false)",
23 "memberOf" : "Roo.BasicDialog",
30 "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>",
31 "memberOf" : "Roo.util.Observable",
36 "name" : "animateTarget",
37 "type" : "String/Element",
38 "desc" : "Id or element from which the dialog should animate while opening\n(defaults to null with no animation)",
39 "memberOf" : "Roo.BasicDialog",
45 "type" : "Boolean/String",
46 "desc" : "True or \"sides\" for the default effect, \"frame\" for 4-way shadow, and \"drop\" for bottom-right\nshadow (defaults to false)",
47 "memberOf" : "Roo.BasicDialog",
52 "name" : "autoScroll",
54 "desc" : "True to allow the dialog body contents to overflow and display scrollbars (defaults to false)",
55 "memberOf" : "Roo.BasicDialog",
60 "name" : "collapsible",
62 "desc" : "False to remove the built-in top-right corner collapse button (defaults to true)",
63 "memberOf" : "Roo.BasicDialog",
70 "desc" : "If true, all elements with class 'x-dlg-tab' will get automatically converted to tabs (defaults to false)",
71 "memberOf" : "Roo.BasicDialog",
76 "name" : "shadowOffset",
78 "desc" : "The number of pixels to offset the shadow if displayed (defaults to 5)",
79 "memberOf" : "Roo.BasicDialog",
86 "desc" : "Array of buttons",
87 "memberOf" : "Roo.BasicDialog",
92 "name" : "minButtonWidth",
94 "desc" : "Minimum width of all dialog buttons (defaults to 75)",
95 "memberOf" : "Roo.BasicDialog",
102 "desc" : "Default text to display in the title bar (defaults to null)",
103 "memberOf" : "Roo.BasicDialog",
110 "desc" : "The minimum allowable width for a resizable dialog (defaults to 200)",
111 "memberOf" : "Roo.BasicDialog",
116 "name" : "buttonAlign",
118 "desc" : "Valid values are \"left,\" \"center\" and \"right\" (defaults to \"right\")",
119 "memberOf" : "Roo.BasicDialog",
124 "name" : "autoCreate",
125 "type" : "Boolean/DomHelper",
126 "desc" : "True to auto create from scratch, or using a DomHelper Object (defaults to false)",
127 "memberOf" : "Roo.BasicDialog",
132 "name" : "minHeight",
134 "desc" : "The minimum allowable height for a resizable dialog (defaults to 80)",
135 "memberOf" : "Roo.BasicDialog",
140 "name" : "proxyDrag",
142 "desc" : "True to drag a lightweight proxy element rather than the dialog itself, used when\ndraggable = true (defaults to false)",
143 "memberOf" : "Roo.BasicDialog",
150 "desc" : "True to create an iframe shim that prevents selects from showing through (defaults to false)",
151 "memberOf" : "Roo.BasicDialog",
158 "desc" : "Width of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
159 "memberOf" : "Roo.BasicDialog",
164 "name" : "constraintoviewport",
166 "desc" : "True to keep the dialog constrained within the visible viewport boundaries (defaults to true)",
167 "memberOf" : "Roo.BasicDialog",
172 "name" : "syncHeightBeforeShow",
174 "desc" : "True to cause the dimensions to be recalculated before the dialog is shown (defaults to false)",
175 "memberOf" : "Roo.BasicDialog",
182 "desc" : "The tag name of tab elements, used when autoTabs = true (defaults to 'div')",
183 "memberOf" : "Roo.BasicDialog",
188 "name" : "resizable",
190 "desc" : "False to disable manual dialog resizing (defaults to true)",
191 "memberOf" : "Roo.BasicDialog",
198 "desc" : "False to remove the built-in top-right corner close button (defaults to true)",
199 "memberOf" : "Roo.BasicDialog",
204 "name" : "fixedcenter",
206 "desc" : "True to ensure that anytime the dialog is shown or resized it gets centered (defaults to false)",
207 "memberOf" : "Roo.BasicDialog",
214 "desc" : "Height of the dialog in pixels (can also be set via CSS). Determined by browser if unspecified.",
215 "memberOf" : "Roo.BasicDialog",
220 "name" : "resizeHandles",
222 "desc" : "Which resize handles to display - see the {@link Roo.Resizable} handles config\nproperty for valid values (defaults to 'all')",
223 "memberOf" : "Roo.BasicDialog",
230 "desc" : "The default left page coordinate of the dialog (defaults to center screen)",
231 "memberOf" : "Roo.BasicDialog",
236 "name" : "draggable",
238 "desc" : "False to disable dragging of the dialog within the viewport (defaults to true)",
239 "memberOf" : "Roo.BasicDialog",
247 "desc" : "Expands a collapsed dialog back to its normal state. Equivalent to the user\nclicking the expand dialog button.",
249 "isConstructor" : false,
251 "memberOf" : "Roo.BasicDialog",
263 "desc" : "Aligns the dialog to the specified element",
265 "isConstructor" : false,
267 "memberOf" : "Roo.BasicDialog",
275 "type" : "String/HTMLElement/Roo.Element",
276 "desc" : "The element to align to.",
282 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details).",
288 "desc" : "(optional) Offset the positioning by [x, y]",
295 "type" : "Roo.BasicDialog",
302 "desc" : "Sets the dialog title text",
304 "isConstructor" : false,
306 "memberOf" : "Roo.BasicDialog",
315 "desc" : "The title text to display",
322 "type" : "Roo.BasicDialog",
328 "name" : "isVisible",
329 "desc" : "Returns true if the dialog is visible",
331 "isConstructor" : false,
333 "memberOf" : "Roo.BasicDialog",
350 "desc" : "Resizes the dialog.",
352 "isConstructor" : false,
354 "memberOf" : "Roo.BasicDialog",
376 "type" : "Roo.BasicDialog",
383 "desc" : "Centers this dialog in the viewport",
385 "isConstructor" : false,
387 "memberOf" : "Roo.BasicDialog",
397 "type" : "Roo.BasicDialog",
404 "desc" : "Collapses the dialog to its minimized state (only the title bar is visible).\nEquivalent to the user clicking the collapse dialog button.",
406 "isConstructor" : false,
408 "memberOf" : "Roo.BasicDialog",
420 "desc" : "Reinitializes the tabs component, clearing out old tabs and finding new ones.",
422 "isConstructor" : false,
424 "memberOf" : "Roo.BasicDialog",
434 "type" : "Roo.TabPanel",
435 "desc" : "The tabs component"
441 "desc" : "Brings this dialog to the front of any other visible dialogs",
443 "isConstructor" : false,
445 "memberOf" : "Roo.BasicDialog",
455 "type" : "Roo.BasicDialog",
462 "desc" : "Moves the dialog's top-left corner to the specified point",
464 "isConstructor" : false,
466 "memberOf" : "Roo.BasicDialog",
488 "type" : "Roo.BasicDialog",
495 "desc" : "Hides the dialog.",
497 "isConstructor" : false,
499 "memberOf" : "Roo.BasicDialog",
508 "desc" : "(optional) Function to call when the dialog is hidden",
515 "type" : "Roo.BasicDialog",
522 "desc" : "Destroys this dialog and all its supporting elements (including any tabs, shim,\nshadow, proxy, mask, etc.) Also removes all event listeners.",
524 "isConstructor" : false,
526 "memberOf" : "Roo.BasicDialog",
535 "desc" : "(optional) true to remove the element from the DOM",
544 "desc" : "Shows the dialog.",
546 "isConstructor" : false,
548 "memberOf" : "Roo.BasicDialog",
555 "name" : "animateTarget",
556 "type" : "String/HTMLElement/Roo.Element",
557 "desc" : "(optional) Reset the animation target",
564 "type" : "Roo.BasicDialog",
571 "desc" : "Anchors an element to another element and realigns it when the window is resized.",
573 "isConstructor" : false,
575 "memberOf" : "Roo.BasicDialog",
583 "type" : "String/HTMLElement/Roo.Element",
584 "desc" : "The element to align to.",
590 "desc" : "The position to align to (see {@link Roo.Element#alignTo} for more details)",
596 "desc" : "(optional) Offset the positioning by [x, y]",
600 "name" : "monitorScroll",
601 "type" : "Boolean/Number",
602 "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).",
609 "type" : "Roo.BasicDialog",
615 "name" : "addButton",
616 "desc" : "Adds a button to the footer section of the dialog.",
618 "isConstructor" : false,
620 "memberOf" : "Roo.BasicDialog",
628 "type" : "String/Object",
629 "desc" : "A string becomes the button text, an object can either be a Button config\nobject or a valid Roo.DomHelper element config",
635 "desc" : "The function called when the button is clicked",
641 "desc" : "(optional) The scope of the handler function (accepts position as a property)",
648 "type" : "Roo.Button",
649 "desc" : "The new button"
654 "name" : "addKeyListener",
655 "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.",
657 "isConstructor" : false,
659 "memberOf" : "Roo.BasicDialog",
667 "type" : "Number/Array/Object",
668 "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)}",
674 "desc" : "The function to call",
680 "desc" : "(optional) The scope of the function",
687 "type" : "Roo.BasicDialog",
694 "desc" : "Focuses the dialog. If a defaultButton is set, it will receive focus, otherwise the\ndialog itself will receive focus.",
696 "isConstructor" : false,
698 "memberOf" : "Roo.BasicDialog",
710 "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.",
712 "isConstructor" : false,
714 "memberOf" : "Roo.BasicDialog",
724 "type" : "Roo.TabPanel",
725 "desc" : "The tabs component"
730 "name" : "setDefaultButton",
731 "desc" : "Sets the default button to be focused when the dialog is displayed.",
733 "isConstructor" : false,
735 "memberOf" : "Roo.BasicDialog",
743 "type" : "Roo.BasicDialog.Button",
744 "desc" : "The button object returned by {@link #addButton}",
751 "type" : "Roo.BasicDialog",
758 "desc" : "Sends this dialog to the back (under) of any other visible dialogs",
760 "isConstructor" : false,
762 "memberOf" : "Roo.BasicDialog",
772 "type" : "Roo.BasicDialog",
778 "name" : "setContentSize",
779 "desc" : "Resizes the dialog to fit the specified content size.",
781 "isConstructor" : false,
783 "memberOf" : "Roo.BasicDialog",
805 "type" : "Roo.BasicDialog",
811 "name" : "restoreState",
812 "desc" : "Restores the previous state of the dialog if Roo.state is configured.",
814 "isConstructor" : false,
816 "memberOf" : "Roo.BasicDialog",
826 "type" : "Roo.BasicDialog",
833 "desc" : "Returns the element for this dialog",
835 "isConstructor" : false,
837 "memberOf" : "Roo.BasicDialog",
847 "type" : "Roo.Element",
848 "desc" : "The underlying dialog Element"
853 "name" : "purgeListeners",
854 "desc" : "Removes all listeners for this object",
856 "isConstructor" : false,
858 "memberOf" : "Roo.util.Observable",
870 "desc" : "Appends an event handler to this element (shorthand for addListener)",
872 "isConstructor" : false,
874 "memberOf" : "Roo.util.Observable",
881 "name" : "eventName",
883 "desc" : "The type of event to listen for",
889 "desc" : "The method the event invokes",
895 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
901 "desc" : "(optional)",
910 "desc" : "Removes a listener (shorthand for removeListener)",
912 "isConstructor" : false,
914 "memberOf" : "Roo.util.Observable",
921 "name" : "eventName",
923 "desc" : "The type of event to listen for",
929 "desc" : "The handler to remove",
935 "desc" : "(optional) The scope (this object) for the handler",
943 "name" : "addEvents",
944 "desc" : "Used to define events on this Observable",
946 "isConstructor" : false,
948 "memberOf" : "Roo.util.Observable",
957 "desc" : "The object with the events defined",
965 "name" : "releaseCapture",
966 "desc" : "Removes <b>all</b> added captures from the Observable.",
968 "isConstructor" : false,
970 "memberOf" : "Roo.util.Observable",
978 "type" : "Observable",
979 "desc" : "The Observable to release",
987 "name" : "removeListener",
988 "desc" : "Removes a listener",
990 "isConstructor" : false,
992 "memberOf" : "Roo.util.Observable",
999 "name" : "eventName",
1001 "desc" : "The type of event to listen for",
1002 "isOptional" : false
1006 "type" : "Function",
1007 "desc" : "The handler to remove",
1008 "isOptional" : false
1013 "desc" : "(optional) The scope (this object) for the handler",
1014 "isOptional" : false
1021 "name" : "fireEvent",
1022 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1024 "isConstructor" : false,
1025 "isPrivate" : false,
1026 "memberOf" : "Roo.util.Observable",
1033 "name" : "eventName",
1036 "isOptional" : false
1040 "type" : "Object...",
1041 "desc" : "Variable number of parameters are passed to handlers",
1042 "isOptional" : false
1049 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1054 "name" : "hasListener",
1055 "desc" : "Checks to see if this object has any listeners for a specified event",
1057 "isConstructor" : false,
1058 "isPrivate" : false,
1059 "memberOf" : "Roo.util.Observable",
1066 "name" : "eventName",
1068 "desc" : "The name of the event to check for",
1069 "isOptional" : false
1076 "desc" : "True if the event is being listened for, else false"
1082 "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.",
1084 "isConstructor" : false,
1085 "isPrivate" : false,
1086 "memberOf" : "Roo.util.Observable",
1094 "type" : "Observable",
1095 "desc" : "The Observable to capture",
1096 "isOptional" : false
1100 "type" : "Function",
1101 "desc" : "The function to call",
1102 "isOptional" : false
1107 "desc" : "(optional) The scope (this object) for the fn",
1108 "isOptional" : false
1115 "name" : "addListener",
1116 "desc" : "Appends an event handler to this component",
1118 "isConstructor" : false,
1119 "isPrivate" : false,
1120 "memberOf" : "Roo.util.Observable",
1127 "name" : "eventName",
1129 "desc" : "The type of event to listen for",
1130 "isOptional" : false
1134 "type" : "Function",
1135 "desc" : "The method the event invokes",
1136 "isOptional" : false
1141 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1142 "isOptional" : false
1147 "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>",
1148 "isOptional" : false
1158 "desc" : "Fires when this dialog is moved by the user.",
1167 "type" : "Roo.BasicDialog",
1169 "isOptional" : false
1174 "desc" : "The new page X",
1175 "isOptional" : false
1180 "desc" : "The new page Y",
1181 "isOptional" : false
1189 "desc" : "Fires when this dialog is resized by the user.",
1198 "type" : "Roo.BasicDialog",
1200 "isOptional" : false
1205 "desc" : "The new width",
1206 "isOptional" : false
1211 "desc" : "The new height",
1212 "isOptional" : false
1219 "name" : "beforehide",
1220 "desc" : "Fires before this dialog is hidden.",
1229 "type" : "Roo.BasicDialog",
1231 "isOptional" : false
1238 "name" : "beforeshow",
1239 "desc" : "Fires before this dialog is shown.",
1248 "type" : "Roo.BasicDialog",
1250 "isOptional" : false
1258 "desc" : "Fires when this dialog is hidden.",
1267 "type" : "Roo.BasicDialog",
1269 "isOptional" : false
1277 "desc" : "Fires when this dialog is shown.",
1286 "type" : "Roo.BasicDialog",
1288 "isOptional" : false
1296 "desc" : "Fires when a key is pressed",
1305 "type" : "Roo.BasicDialog",
1307 "isOptional" : false
1311 "type" : "Roo.EventObject",
1313 "isOptional" : false