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,
151 "desc" : "css styles to add to component\neg. text-align:right;",
152 "memberOf" : "Roo.Component",
153 "isOptional" : false,
157 "name" : "allowDomMove",
159 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
160 "memberOf" : "Roo.Component",
161 "isOptional" : false,
165 "name" : "showClear",
167 "desc" : "Show a clear button (usefull for date form elements that can be blank.)",
169 "isOptional" : false,
175 "desc" : "The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')",
177 "isOptional" : false,
183 "desc" : "An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)",
185 "isOptional" : false,
189 "name" : "actionMode",
191 "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",
192 "memberOf" : "Roo.Component",
193 "isOptional" : false,
197 "name" : "disabledDaysText",
199 "desc" : "The tooltip to display when the date falls on a disabled day (defaults to \"\")",
201 "isOptional" : false,
205 "name" : "disabledDatesRE",
207 "desc" : "JavaScript regular expression used to disable a pattern of dates (defaults to null)",
209 "isOptional" : false,
215 "desc" : "Minimum allowable date (JavaScript date object, defaults to null)",
217 "isOptional" : false,
221 "name" : "disabledDays",
223 "desc" : "An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).",
225 "isOptional" : false,
231 "desc" : "The text to display on the ok button",
233 "isOptional" : false,
239 "desc" : "Maximum allowable date (JavaScript date object, defaults to null)",
241 "isOptional" : false,
245 "name" : "disableClass",
247 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
248 "memberOf" : "Roo.Component",
249 "isOptional" : false,
257 "desc" : "Gets the current selected value of the date field",
258 "sig" : "()\n{\n\n}",
262 "isConstructor" : false,
275 "desc" : "The selected date"
282 "desc" : "Sets the value of the date field",
287 "isConstructor" : false,
299 "desc" : "The date to set",
308 "desc" : "Returns the id of this component.",
309 "sig" : "()\n{\n\n}",
311 "memberOf" : "Roo.Component",
313 "isConstructor" : false,
333 "desc" : "If this is a lazy rendering component, render it to its container element.",
334 "sig" : "(container)",
336 "memberOf" : "Roo.Component",
338 "isConstructor" : false,
348 "name" : "container",
349 "type" : "String/HTMLElement/Element",
350 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
359 "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}.",
360 "sig" : "()\n{\n\n}",
362 "memberOf" : "Roo.Component",
364 "isConstructor" : false,
376 "name" : "isVisible",
378 "desc" : "Returns true if this component is visible.",
379 "sig" : "()\n{\n\n}",
381 "memberOf" : "Roo.Component",
383 "isConstructor" : false,
395 "name" : "setDisabled",
397 "desc" : "Convenience function for setting disabled/enabled by boolean.",
398 "sig" : "(disabled)",
400 "memberOf" : "Roo.Component",
402 "isConstructor" : false,
423 "desc" : "Hide this component.",
424 "sig" : "()\n{\n\n}",
426 "memberOf" : "Roo.Component",
428 "isConstructor" : false,
440 "type" : "Roo.Component",
448 "desc" : "Try to focus this component.",
449 "sig" : "(selectText)",
451 "memberOf" : "Roo.Component",
453 "isConstructor" : false,
463 "name" : "selectText",
465 "desc" : "True to also select the text in this component (if applicable)",
472 "type" : "Roo.Component",
480 "desc" : "Show this component.",
481 "sig" : "()\n{\n\n}",
483 "memberOf" : "Roo.Component",
485 "isConstructor" : false,
497 "type" : "Roo.Component",
505 "desc" : "Enable this component.",
506 "sig" : "()\n{\n\n}",
508 "memberOf" : "Roo.Component",
510 "isConstructor" : false,
522 "type" : "Roo.Component",
528 "name" : "setVisible",
530 "desc" : "Convenience function to hide or show this component by boolean.",
533 "memberOf" : "Roo.Component",
535 "isConstructor" : false,
547 "desc" : "True to show, false to hide",
554 "type" : "Roo.Component",
562 "desc" : "Disable this component.",
563 "sig" : "()\n{\n\n}",
565 "memberOf" : "Roo.Component",
567 "isConstructor" : false,
579 "type" : "Roo.Component",
587 "desc" : "Returns the underlying {@link Roo.Element}.",
588 "sig" : "()\n{\n\n}",
590 "memberOf" : "Roo.Component",
592 "isConstructor" : false,
604 "type" : "Roo.Element",
605 "desc" : "The element"
610 "name" : "purgeListeners",
612 "desc" : "Removes all listeners for this object",
613 "sig" : "()\n{\n\n}",
615 "memberOf" : "Roo.util.Observable",
617 "isConstructor" : false,
631 "desc" : "Appends an event handler to this element (shorthand for addListener)",
632 "sig" : "(eventName, handler, scope, options)",
634 "memberOf" : "Roo.util.Observable",
636 "isConstructor" : false,
646 "name" : "eventName",
648 "desc" : "The type of event to listen for",
654 "desc" : "The method the event invokes",
660 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
666 "desc" : "(optional)",
675 "desc" : "Removes a listener (shorthand for removeListener)",
676 "sig" : "(eventName, handler, scope)",
678 "memberOf" : "Roo.util.Observable",
680 "isConstructor" : false,
690 "name" : "eventName",
692 "desc" : "The type of event to listen for",
698 "desc" : "The handler to remove",
704 "desc" : "(optional) The scope (this object) for the handler",
711 "name" : "addEvents",
713 "desc" : "Used to define events on this Observable",
716 "memberOf" : "Roo.util.Observable",
718 "isConstructor" : false,
730 "desc" : "The object with the events defined",
737 "name" : "releaseCapture",
739 "desc" : "Removes <b>all</b> added captures from the Observable.",
742 "memberOf" : "Roo.util.Observable",
744 "isConstructor" : false,
755 "type" : "Observable",
756 "desc" : "The Observable to release",
763 "name" : "removeListener",
765 "desc" : "Removes a listener",
766 "sig" : "(eventName, handler, scope)",
768 "memberOf" : "Roo.util.Observable",
770 "isConstructor" : false,
780 "name" : "eventName",
782 "desc" : "The type of event to listen for",
788 "desc" : "The handler to remove",
794 "desc" : "(optional) The scope (this object) for the handler",
801 "name" : "fireEvent",
803 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
804 "sig" : "(eventName, args)",
806 "memberOf" : "Roo.util.Observable",
808 "isConstructor" : false,
818 "name" : "eventName",
825 "type" : "Object...",
826 "desc" : "Variable number of parameters are passed to handlers",
834 "desc" : "returns false if any of the handlers return false otherwise it returns true"
839 "name" : "hasListener",
841 "desc" : "Checks to see if this object has any listeners for a specified event",
842 "sig" : "(eventName)",
844 "memberOf" : "Roo.util.Observable",
846 "isConstructor" : false,
856 "name" : "eventName",
858 "desc" : "The name of the event to check for",
866 "desc" : "True if the event is being listened for, else false"
873 "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.",
874 "sig" : "(o, fn, scope)",
876 "memberOf" : "Roo.util.Observable",
878 "isConstructor" : false,
889 "type" : "Observable",
890 "desc" : "The Observable to capture",
896 "desc" : "The function to call",
902 "desc" : "(optional) The scope (this object) for the fn",
909 "name" : "addListener",
911 "desc" : "Appends an event handler to this component",
912 "sig" : "(eventName, handler, scope, options)",
914 "memberOf" : "Roo.util.Observable",
916 "isConstructor" : false,
926 "name" : "eventName",
928 "desc" : "The type of event to listen for",
934 "desc" : "The method the event invokes",
940 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
946 "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>",
957 "desc" : "Fires when a date is selected",
958 "sig" : "function (_self, date)\n{\n\n}",
967 "type" : "DatePicker",
974 "desc" : "The selected date",
981 "name" : "monthchange",
983 "desc" : "Fires when the displayed month changes",
984 "sig" : "function (_self, date)\n{\n\n}",
993 "type" : "DatePicker",
1000 "desc" : "The selected month",
1001 "isOptional" : false
1007 "name" : "beforerender",
1008 "type" : "function",
1009 "desc" : "Fires before the component is rendered. Return false to stop the render.",
1010 "sig" : "function (_self)\n{\n\n}",
1011 "memberOf" : "Roo.Component",
1019 "type" : "Roo.Component",
1021 "isOptional" : false
1028 "type" : "function",
1029 "desc" : "Fires after the component is disabled.",
1030 "sig" : "function (_self)\n{\n\n}",
1031 "memberOf" : "Roo.Component",
1039 "type" : "Roo.Component",
1041 "isOptional" : false
1048 "type" : "function",
1049 "desc" : "Fires after the component is rendered.",
1050 "sig" : "function (_self)\n{\n\n}",
1051 "memberOf" : "Roo.Component",
1059 "type" : "Roo.Component",
1061 "isOptional" : false
1068 "type" : "function",
1069 "desc" : "Fires after the component is destroyed.",
1070 "sig" : "function (_self)\n{\n\n}",
1071 "memberOf" : "Roo.Component",
1079 "type" : "Roo.Component",
1081 "isOptional" : false
1088 "type" : "function",
1089 "desc" : "Fires after the component is hidden.",
1090 "sig" : "function (_self)\n{\n\n}",
1091 "memberOf" : "Roo.Component",
1099 "type" : "Roo.Component",
1101 "isOptional" : false
1107 "name" : "beforehide",
1108 "type" : "function",
1109 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1110 "sig" : "function (_self)\n{\n\n}",
1111 "memberOf" : "Roo.Component",
1119 "type" : "Roo.Component",
1121 "isOptional" : false
1128 "type" : "function",
1129 "desc" : "Fires after the component is shown.",
1130 "sig" : "function (_self)\n{\n\n}",
1131 "memberOf" : "Roo.Component",
1139 "type" : "Roo.Component",
1141 "isOptional" : false
1147 "name" : "beforeshow",
1148 "type" : "function",
1149 "desc" : "Fires before the component is shown. Return false to stop the show.",
1150 "sig" : "function (_self)\n{\n\n}",
1151 "memberOf" : "Roo.Component",
1159 "type" : "Roo.Component",
1161 "isOptional" : false
1168 "type" : "function",
1169 "desc" : "Fires after the component is enabled.",
1170 "sig" : "function (_self)\n{\n\n}",
1171 "memberOf" : "Roo.Component",
1179 "type" : "Roo.Component",
1181 "isOptional" : false
1187 "name" : "beforedestroy",
1188 "type" : "function",
1189 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1190 "sig" : "function (_self)\n{\n\n}",
1191 "memberOf" : "Roo.Component",
1199 "type" : "Roo.Component",
1201 "isOptional" : false