2 "name" : "Roo.DatePicker",
10 "desc" : "Simple date picker class.",
11 "isSingleton" : false,
15 "isBuilderTop" : false,
16 "memberOf" : "DatePicker",
25 "desc" : "The config object",
36 "desc" : "Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)",
42 "name" : "monthYearText",
44 "desc" : "The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')",
50 "name" : "monthNames",
52 "desc" : "An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)",
60 "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>",
61 "memberOf" : "Roo.util.Observable",
68 "desc" : "The default date format string which can be overriden for localization support. The format must be\nvalid according to {@link Date#parseDate} (defaults to 'm/d/y').",
76 "desc" : "The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')",
84 "desc" : "The error text to display if the maxDate validation fails (defaults to \"This date is after the maximum date\")",
90 "name" : "constrainToViewport",
92 "desc" : "True to constrain the date picker to the viewport (defaults to true)",
100 "desc" : "The error text to display if the minDate validation fails (defaults to \"This date is before the minimum date\")",
102 "isOptional" : false,
106 "name" : "disabledDatesText",
108 "desc" : "The tooltip text to display when the date falls on a disabled date (defaults to \"\")",
110 "isOptional" : false,
116 "desc" : "The tooltip to display for the button that selects the current date (defaults to \"{current date} (Spacebar)\")",
118 "isOptional" : false,
124 "desc" : "y)\nHow this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display",
125 "memberOf" : "Roo.Component",
126 "isOptional" : false,
133 "name" : "todayText",
135 "desc" : "The text to display on the button that selects the current date (defaults to \"Today\")",
137 "isOptional" : false,
141 "name" : "cancelText",
143 "desc" : "The text to display on the cancel button",
145 "isOptional" : false,
149 "name" : "allowDomMove",
151 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
152 "memberOf" : "Roo.Component",
153 "isOptional" : false,
157 "name" : "showClear",
159 "desc" : "Show a clear button (usefull for date form elements that can be blank.)",
161 "isOptional" : false,
167 "desc" : "The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')",
169 "isOptional" : false,
175 "desc" : "An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)",
177 "isOptional" : false,
181 "name" : "actionMode",
183 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el' for forms you probably want to set this to fieldEl",
184 "memberOf" : "Roo.Component",
185 "isOptional" : false,
189 "name" : "disabledDaysText",
191 "desc" : "The tooltip to display when the date falls on a disabled day (defaults to \"\")",
193 "isOptional" : false,
197 "name" : "disabledDatesRE",
199 "desc" : "JavaScript regular expression used to disable a pattern of dates (defaults to null)",
201 "isOptional" : false,
207 "desc" : "Minimum allowable date (JavaScript date object, defaults to null)",
209 "isOptional" : false,
213 "name" : "disabledDays",
215 "desc" : "An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).",
217 "isOptional" : false,
223 "desc" : "The text to display on the ok button",
225 "isOptional" : false,
231 "desc" : "Maximum allowable date (JavaScript date object, defaults to null)",
233 "isOptional" : false,
237 "name" : "disableClass",
239 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
240 "memberOf" : "Roo.Component",
241 "isOptional" : false,
249 "desc" : "Gets the current selected value of the date field",
250 "sig" : "()\n{\n\n}",
254 "isConstructor" : false,
267 "desc" : "The selected date"
274 "desc" : "Sets the value of the date field",
279 "isConstructor" : false,
291 "desc" : "The date to set",
300 "desc" : "Returns the id of this component.",
301 "sig" : "()\n{\n\n}",
303 "memberOf" : "Roo.Component",
305 "isConstructor" : false,
325 "desc" : "If this is a lazy rendering component, render it to its container element.",
326 "sig" : "(container)",
328 "memberOf" : "Roo.Component",
330 "isConstructor" : false,
340 "name" : "container",
341 "type" : "String/HTMLElement/Element",
342 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
351 "desc" : "Destroys this component by purging any event listeners, removing the component's element from the DOM,\nremoving the component from its {@link Roo.Container} (if applicable) and unregistering it from {@link Roo.ComponentMgr}.",
352 "sig" : "()\n{\n\n}",
354 "memberOf" : "Roo.Component",
356 "isConstructor" : false,
368 "name" : "isVisible",
370 "desc" : "Returns true if this component is visible.",
371 "sig" : "()\n{\n\n}",
373 "memberOf" : "Roo.Component",
375 "isConstructor" : false,
387 "name" : "setDisabled",
389 "desc" : "Convenience function for setting disabled/enabled by boolean.",
390 "sig" : "(disabled)",
392 "memberOf" : "Roo.Component",
394 "isConstructor" : false,
415 "desc" : "Hide this component.",
416 "sig" : "()\n{\n\n}",
418 "memberOf" : "Roo.Component",
420 "isConstructor" : false,
432 "type" : "Roo.Component",
440 "desc" : "Try to focus this component.",
441 "sig" : "(selectText)",
443 "memberOf" : "Roo.Component",
445 "isConstructor" : false,
455 "name" : "selectText",
457 "desc" : "True to also select the text in this component (if applicable)",
464 "type" : "Roo.Component",
472 "desc" : "Show this component.",
473 "sig" : "()\n{\n\n}",
475 "memberOf" : "Roo.Component",
477 "isConstructor" : false,
489 "type" : "Roo.Component",
497 "desc" : "Enable this component.",
498 "sig" : "()\n{\n\n}",
500 "memberOf" : "Roo.Component",
502 "isConstructor" : false,
514 "type" : "Roo.Component",
520 "name" : "setVisible",
522 "desc" : "Convenience function to hide or show this component by boolean.",
525 "memberOf" : "Roo.Component",
527 "isConstructor" : false,
539 "desc" : "True to show, false to hide",
546 "type" : "Roo.Component",
554 "desc" : "Disable this component.",
555 "sig" : "()\n{\n\n}",
557 "memberOf" : "Roo.Component",
559 "isConstructor" : false,
571 "type" : "Roo.Component",
579 "desc" : "Returns the underlying {@link Roo.Element}.",
580 "sig" : "()\n{\n\n}",
582 "memberOf" : "Roo.Component",
584 "isConstructor" : false,
596 "type" : "Roo.Element",
597 "desc" : "The element"
602 "name" : "purgeListeners",
604 "desc" : "Removes all listeners for this object",
605 "sig" : "()\n{\n\n}",
607 "memberOf" : "Roo.util.Observable",
609 "isConstructor" : false,
623 "desc" : "Appends an event handler to this element (shorthand for addListener)",
624 "sig" : "(eventName, handler, scope, options)",
626 "memberOf" : "Roo.util.Observable",
628 "isConstructor" : false,
638 "name" : "eventName",
640 "desc" : "The type of event to listen for",
646 "desc" : "The method the event invokes",
652 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
658 "desc" : "(optional)",
667 "desc" : "Removes a listener (shorthand for removeListener)",
668 "sig" : "(eventName, handler, scope)",
670 "memberOf" : "Roo.util.Observable",
672 "isConstructor" : false,
682 "name" : "eventName",
684 "desc" : "The type of event to listen for",
690 "desc" : "The handler to remove",
696 "desc" : "(optional) The scope (this object) for the handler",
703 "name" : "addEvents",
705 "desc" : "Used to define events on this Observable",
708 "memberOf" : "Roo.util.Observable",
710 "isConstructor" : false,
722 "desc" : "The object with the events defined",
729 "name" : "releaseCapture",
731 "desc" : "Removes <b>all</b> added captures from the Observable.",
734 "memberOf" : "Roo.util.Observable",
736 "isConstructor" : false,
747 "type" : "Observable",
748 "desc" : "The Observable to release",
755 "name" : "removeListener",
757 "desc" : "Removes a listener",
758 "sig" : "(eventName, handler, scope)",
760 "memberOf" : "Roo.util.Observable",
762 "isConstructor" : false,
772 "name" : "eventName",
774 "desc" : "The type of event to listen for",
780 "desc" : "The handler to remove",
786 "desc" : "(optional) The scope (this object) for the handler",
793 "name" : "fireEvent",
795 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
796 "sig" : "(eventName, args)",
798 "memberOf" : "Roo.util.Observable",
800 "isConstructor" : false,
810 "name" : "eventName",
817 "type" : "Object...",
818 "desc" : "Variable number of parameters are passed to handlers",
826 "desc" : "returns false if any of the handlers return false otherwise it returns true"
831 "name" : "hasListener",
833 "desc" : "Checks to see if this object has any listeners for a specified event",
834 "sig" : "(eventName)",
836 "memberOf" : "Roo.util.Observable",
838 "isConstructor" : false,
848 "name" : "eventName",
850 "desc" : "The name of the event to check for",
858 "desc" : "True if the event is being listened for, else false"
865 "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.",
866 "sig" : "(o, fn, scope)",
868 "memberOf" : "Roo.util.Observable",
870 "isConstructor" : false,
881 "type" : "Observable",
882 "desc" : "The Observable to capture",
888 "desc" : "The function to call",
894 "desc" : "(optional) The scope (this object) for the fn",
901 "name" : "addListener",
903 "desc" : "Appends an event handler to this component",
904 "sig" : "(eventName, handler, scope, options)",
906 "memberOf" : "Roo.util.Observable",
908 "isConstructor" : false,
918 "name" : "eventName",
920 "desc" : "The type of event to listen for",
926 "desc" : "The method the event invokes",
932 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
938 "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>",
949 "desc" : "Fires when a date is selected",
950 "sig" : "function (_self, date)\n{\n\n}",
959 "type" : "DatePicker",
966 "desc" : "The selected date",
973 "name" : "monthchange",
975 "desc" : "Fires when the displayed month changes",
976 "sig" : "function (_self, date)\n{\n\n}",
985 "type" : "DatePicker",
992 "desc" : "The selected month",
999 "name" : "beforerender",
1000 "type" : "function",
1001 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1002 "sig" : "function (_self)\n{\n\n}",
1003 "memberOf" : "Roo.Component",
1011 "type" : "Roo.Component",
1013 "isOptional" : false
1020 "type" : "function",
1021 "desc" : "Fires after the component is disabled.",
1022 "sig" : "function (_self)\n{\n\n}",
1023 "memberOf" : "Roo.Component",
1031 "type" : "Roo.Component",
1033 "isOptional" : false
1040 "type" : "function",
1041 "desc" : "Fires after the component is rendered.",
1042 "sig" : "function (_self)\n{\n\n}",
1043 "memberOf" : "Roo.Component",
1051 "type" : "Roo.Component",
1053 "isOptional" : false
1060 "type" : "function",
1061 "desc" : "Fires after the component is destroyed.",
1062 "sig" : "function (_self)\n{\n\n}",
1063 "memberOf" : "Roo.Component",
1071 "type" : "Roo.Component",
1073 "isOptional" : false
1080 "type" : "function",
1081 "desc" : "Fires after the component is hidden.",
1082 "sig" : "function (_self)\n{\n\n}",
1083 "memberOf" : "Roo.Component",
1091 "type" : "Roo.Component",
1093 "isOptional" : false
1099 "name" : "beforehide",
1100 "type" : "function",
1101 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1102 "sig" : "function (_self)\n{\n\n}",
1103 "memberOf" : "Roo.Component",
1111 "type" : "Roo.Component",
1113 "isOptional" : false
1120 "type" : "function",
1121 "desc" : "Fires after the component is shown.",
1122 "sig" : "function (_self)\n{\n\n}",
1123 "memberOf" : "Roo.Component",
1131 "type" : "Roo.Component",
1133 "isOptional" : false
1139 "name" : "beforeshow",
1140 "type" : "function",
1141 "desc" : "Fires before the component is shown. Return false to stop the show.",
1142 "sig" : "function (_self)\n{\n\n}",
1143 "memberOf" : "Roo.Component",
1151 "type" : "Roo.Component",
1153 "isOptional" : false
1160 "type" : "function",
1161 "desc" : "Fires after the component is enabled.",
1162 "sig" : "function (_self)\n{\n\n}",
1163 "memberOf" : "Roo.Component",
1171 "type" : "Roo.Component",
1173 "isOptional" : false
1179 "name" : "beforedestroy",
1180 "type" : "function",
1181 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1182 "sig" : "function (_self)\n{\n\n}",
1183 "memberOf" : "Roo.Component",
1191 "type" : "Roo.Component",
1193 "isOptional" : false