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)",
40 "name" : "monthYearText",
42 "desc" : "The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')",
46 "name" : "monthNames",
48 "desc" : "An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)",
54 "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>",
55 "memberOf" : "Roo.util.Observable"
60 "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').",
66 "desc" : "The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')",
72 "desc" : "The error text to display if the maxDate validation fails (defaults to \"This date is after the maximum date\")",
76 "name" : "constrainToViewport",
78 "desc" : "True to constrain the date picker to the viewport (defaults to true)",
84 "desc" : "The error text to display if the minDate validation fails (defaults to \"This date is before the minimum date\")",
88 "name" : "disabledDatesText",
90 "desc" : "The tooltip text to display when the date falls on a disabled date (defaults to \"\")",
96 "desc" : "The tooltip to display for the button that selects the current date (defaults to \"{current date} (Spacebar)\")",
102 "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\".",
103 "memberOf" : "Roo.Component"
106 "name" : "todayText",
108 "desc" : "The text to display on the button that selects the current date (defaults to \"Today\")",
112 "name" : "cancelText",
114 "desc" : "The text to display on the cancel button",
118 "name" : "allowDomMove",
120 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
121 "memberOf" : "Roo.Component"
124 "name" : "showClear",
126 "desc" : "Show a clear button (usefull for date form elements that can be blank.)",
132 "desc" : "The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')",
138 "desc" : "An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)",
142 "name" : "actionMode",
144 "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",
145 "memberOf" : "Roo.Component"
148 "name" : "disabledDaysText",
150 "desc" : "The tooltip to display when the date falls on a disabled day (defaults to \"\")",
154 "name" : "disabledDatesRE",
156 "desc" : "JavaScript regular expression used to disable a pattern of dates (defaults to null)",
162 "desc" : "Minimum allowable date (JavaScript date object, defaults to null)",
166 "name" : "disabledDays",
168 "desc" : "An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).",
174 "desc" : "The text to display on the ok button",
180 "desc" : "Maximum allowable date (JavaScript date object, defaults to null)",
184 "name" : "disableClass",
186 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
187 "memberOf" : "Roo.Component"
194 "desc" : "Gets the current selected value of the date field",
195 "sig" : "()\n{\n\n}",
199 "isConstructor" : false,
212 "desc" : "The selected date"
219 "desc" : "Sets the value of the date field",
224 "isConstructor" : false,
236 "desc" : "The date to set",
245 "desc" : "Returns the id of this component.",
246 "sig" : "()\n{\n\n}",
248 "memberOf" : "Roo.Component",
250 "isConstructor" : false,
270 "desc" : "If this is a lazy rendering component, render it to its container element.",
271 "sig" : "(container)",
273 "memberOf" : "Roo.Component",
275 "isConstructor" : false,
285 "name" : "container",
286 "type" : "String/HTMLElement/Element",
287 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
296 "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}.",
297 "sig" : "()\n{\n\n}",
299 "memberOf" : "Roo.Component",
301 "isConstructor" : false,
313 "name" : "isVisible",
315 "desc" : "Returns true if this component is visible.",
316 "sig" : "()\n{\n\n}",
318 "memberOf" : "Roo.Component",
320 "isConstructor" : false,
332 "name" : "setDisabled",
334 "desc" : "Convenience function for setting disabled/enabled by boolean.",
335 "sig" : "(disabled)",
337 "memberOf" : "Roo.Component",
339 "isConstructor" : false,
360 "desc" : "Hide this component.",
361 "sig" : "()\n{\n\n}",
363 "memberOf" : "Roo.Component",
365 "isConstructor" : false,
377 "type" : "Roo.Component",
385 "desc" : "Try to focus this component.",
386 "sig" : "(selectText)",
388 "memberOf" : "Roo.Component",
390 "isConstructor" : false,
400 "name" : "selectText",
402 "desc" : "True to also select the text in this component (if applicable)",
409 "type" : "Roo.Component",
417 "desc" : "Show this component.",
418 "sig" : "()\n{\n\n}",
420 "memberOf" : "Roo.Component",
422 "isConstructor" : false,
434 "type" : "Roo.Component",
442 "desc" : "Enable this component.",
443 "sig" : "()\n{\n\n}",
445 "memberOf" : "Roo.Component",
447 "isConstructor" : false,
459 "type" : "Roo.Component",
465 "name" : "setVisible",
467 "desc" : "Convenience function to hide or show this component by boolean.",
470 "memberOf" : "Roo.Component",
472 "isConstructor" : false,
484 "desc" : "True to show, false to hide",
491 "type" : "Roo.Component",
499 "desc" : "Disable this component.",
500 "sig" : "()\n{\n\n}",
502 "memberOf" : "Roo.Component",
504 "isConstructor" : false,
516 "type" : "Roo.Component",
524 "desc" : "Returns the underlying {@link Roo.Element}.",
525 "sig" : "()\n{\n\n}",
527 "memberOf" : "Roo.Component",
529 "isConstructor" : false,
541 "type" : "Roo.Element",
542 "desc" : "The element"
547 "name" : "purgeListeners",
549 "desc" : "Removes all listeners for this object",
550 "sig" : "()\n{\n\n}",
552 "memberOf" : "Roo.util.Observable",
554 "isConstructor" : false,
568 "desc" : "Appends an event handler to this element (shorthand for addListener)",
569 "sig" : "(eventName, handler, scope, options)",
571 "memberOf" : "Roo.util.Observable",
573 "isConstructor" : false,
583 "name" : "eventName",
585 "desc" : "The type of event to listen for",
591 "desc" : "The method the event invokes",
597 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
603 "desc" : "(optional)",
612 "desc" : "Removes a listener (shorthand for removeListener)",
613 "sig" : "(eventName, handler, scope)",
615 "memberOf" : "Roo.util.Observable",
617 "isConstructor" : false,
627 "name" : "eventName",
629 "desc" : "The type of event to listen for",
635 "desc" : "The handler to remove",
641 "desc" : "(optional) The scope (this object) for the handler",
648 "name" : "addEvents",
650 "desc" : "Used to define events on this Observable",
653 "memberOf" : "Roo.util.Observable",
655 "isConstructor" : false,
667 "desc" : "The object with the events defined",
674 "name" : "releaseCapture",
676 "desc" : "Removes <b>all</b> added captures from the Observable.",
679 "memberOf" : "Roo.util.Observable",
681 "isConstructor" : false,
692 "type" : "Observable",
693 "desc" : "The Observable to release",
700 "name" : "removeListener",
702 "desc" : "Removes a listener",
703 "sig" : "(eventName, handler, scope)",
705 "memberOf" : "Roo.util.Observable",
707 "isConstructor" : false,
717 "name" : "eventName",
719 "desc" : "The type of event to listen for",
725 "desc" : "The handler to remove",
731 "desc" : "(optional) The scope (this object) for the handler",
738 "name" : "fireEvent",
740 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
741 "sig" : "(eventName, args)",
743 "memberOf" : "Roo.util.Observable",
745 "isConstructor" : false,
755 "name" : "eventName",
762 "type" : "Object...",
763 "desc" : "Variable number of parameters are passed to handlers",
771 "desc" : "returns false if any of the handlers return false otherwise it returns true"
776 "name" : "hasListener",
778 "desc" : "Checks to see if this object has any listeners for a specified event",
779 "sig" : "(eventName)",
781 "memberOf" : "Roo.util.Observable",
783 "isConstructor" : false,
793 "name" : "eventName",
795 "desc" : "The name of the event to check for",
803 "desc" : "True if the event is being listened for, else false"
810 "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.",
811 "sig" : "(o, fn, scope)",
813 "memberOf" : "Roo.util.Observable",
815 "isConstructor" : false,
826 "type" : "Observable",
827 "desc" : "The Observable to capture",
833 "desc" : "The function to call",
839 "desc" : "(optional) The scope (this object) for the fn",
846 "name" : "addListener",
848 "desc" : "Appends an event handler to this component",
849 "sig" : "(eventName, handler, scope, options)",
851 "memberOf" : "Roo.util.Observable",
853 "isConstructor" : false,
863 "name" : "eventName",
865 "desc" : "The type of event to listen for",
871 "desc" : "The method the event invokes",
877 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
883 "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>",
894 "desc" : "Fires when a date is selected",
895 "sig" : "function (_self, date)\n{\n\n}",
904 "type" : "DatePicker",
911 "desc" : "The selected date",
918 "name" : "monthchange",
920 "desc" : "Fires when the displayed month changes",
921 "sig" : "function (_self, date)\n{\n\n}",
930 "type" : "DatePicker",
937 "desc" : "The selected month",
944 "name" : "beforerender",
946 "desc" : "Fires before the component is rendered. Return false to stop the render.",
947 "sig" : "function (_self)\n{\n\n}",
948 "memberOf" : "Roo.Component",
956 "type" : "Roo.Component",
966 "desc" : "Fires after the component is disabled.",
967 "sig" : "function (_self)\n{\n\n}",
968 "memberOf" : "Roo.Component",
976 "type" : "Roo.Component",
986 "desc" : "Fires after the component is rendered.",
987 "sig" : "function (_self)\n{\n\n}",
988 "memberOf" : "Roo.Component",
996 "type" : "Roo.Component",
1005 "type" : "function",
1006 "desc" : "Fires after the component is destroyed.",
1007 "sig" : "function (_self)\n{\n\n}",
1008 "memberOf" : "Roo.Component",
1016 "type" : "Roo.Component",
1018 "isOptional" : false
1025 "type" : "function",
1026 "desc" : "Fires after the component is hidden.",
1027 "sig" : "function (_self)\n{\n\n}",
1028 "memberOf" : "Roo.Component",
1036 "type" : "Roo.Component",
1038 "isOptional" : false
1044 "name" : "beforehide",
1045 "type" : "function",
1046 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
1047 "sig" : "function (_self)\n{\n\n}",
1048 "memberOf" : "Roo.Component",
1056 "type" : "Roo.Component",
1058 "isOptional" : false
1065 "type" : "function",
1066 "desc" : "Fires after the component is shown.",
1067 "sig" : "function (_self)\n{\n\n}",
1068 "memberOf" : "Roo.Component",
1076 "type" : "Roo.Component",
1078 "isOptional" : false
1084 "name" : "beforeshow",
1085 "type" : "function",
1086 "desc" : "Fires before the component is shown. Return false to stop the show.",
1087 "sig" : "function (_self)\n{\n\n}",
1088 "memberOf" : "Roo.Component",
1096 "type" : "Roo.Component",
1098 "isOptional" : false
1105 "type" : "function",
1106 "desc" : "Fires after the component is enabled.",
1107 "sig" : "function (_self)\n{\n\n}",
1108 "memberOf" : "Roo.Component",
1116 "type" : "Roo.Component",
1118 "isOptional" : false
1124 "name" : "beforedestroy",
1125 "type" : "function",
1126 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
1127 "sig" : "function (_self)\n{\n\n}",
1128 "memberOf" : "Roo.Component",
1136 "type" : "Roo.Component",
1138 "isOptional" : false