2 "name" : "Roo.ColorPalette",
7 "desc" : "Simple color palette class for choosing colors. The palette can be rendered to any container.<br />\nHere's an example of typical usage:\n<pre><code>\nvar cp = new Roo.ColorPalette({value:'993300'}); // initial selected color\ncp.render('my-div');\n\ncp.on('select', function(palette, selColor){\n // do something with selColor\n});\n</code></pre>",
11 "memberOf" : "ColorPalette",
20 "desc" : "The config object",
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" : "allowReselect",
38 "desc" : "If set to true then reselecting a color that is already selected fires the selection event",
39 "memberOf" : "Roo.ColorPalette",
46 "desc" : "How this component should hidden. Supported values are\n\"visibility\" (css visibility), \"offsets\" (negative offset position) and\n\"display\" (css display) - defaults to \"display\".",
47 "memberOf" : "Roo.Component",
56 "desc" : "The initial color to highlight (should be a valid 6-digit color hex code without the # symbol). Note that\nthe hex codes are case-sensitive.",
57 "memberOf" : "Roo.ColorPalette",
62 "name" : "allowDomMove",
64 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
65 "memberOf" : "Roo.Component",
72 "desc" : "The CSS class to apply to the containing element (defaults to \"x-color-palette\")",
73 "memberOf" : "Roo.ColorPalette",
78 "name" : "actionMode",
80 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
81 "memberOf" : "Roo.Component",
86 "name" : "disableClass",
88 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
89 "memberOf" : "Roo.Component",
97 "desc" : "Selects the specified color in the palette (fires the select event)",
99 "isConstructor" : false,
101 "memberOf" : "Roo.ColorPalette",
110 "desc" : "A valid 6-digit color hex code (# will be stripped if included)",
119 "desc" : "Returns the id of this component.",
121 "isConstructor" : false,
123 "memberOf" : "Roo.Component",
140 "desc" : "If this is a lazy rendering component, render it to its container element.",
142 "isConstructor" : false,
144 "memberOf" : "Roo.Component",
151 "name" : "container",
152 "type" : "String/HTMLElement/Element",
153 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
162 "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}.",
164 "isConstructor" : false,
166 "memberOf" : "Roo.Component",
177 "name" : "isVisible",
178 "desc" : "Returns true if this component is visible.",
180 "isConstructor" : false,
182 "memberOf" : "Roo.Component",
193 "name" : "setDisabled",
194 "desc" : "Convenience function for setting disabled/enabled by boolean.",
196 "isConstructor" : false,
198 "memberOf" : "Roo.Component",
216 "desc" : "Hide this component.",
218 "isConstructor" : false,
220 "memberOf" : "Roo.Component",
230 "type" : "Roo.Component",
237 "desc" : "Try to focus this component.",
239 "isConstructor" : false,
241 "memberOf" : "Roo.Component",
248 "name" : "selectText",
250 "desc" : "True to also select the text in this component (if applicable)",
257 "type" : "Roo.Component",
264 "desc" : "Show this component.",
266 "isConstructor" : false,
268 "memberOf" : "Roo.Component",
278 "type" : "Roo.Component",
285 "desc" : "Enable this component.",
287 "isConstructor" : false,
289 "memberOf" : "Roo.Component",
299 "type" : "Roo.Component",
305 "name" : "setVisible",
306 "desc" : "Convenience function to hide or show this component by boolean.",
308 "isConstructor" : false,
310 "memberOf" : "Roo.Component",
319 "desc" : "True to show, false to hide",
326 "type" : "Roo.Component",
333 "desc" : "Disable this component.",
335 "isConstructor" : false,
337 "memberOf" : "Roo.Component",
347 "type" : "Roo.Component",
354 "desc" : "Returns the underlying {@link Roo.Element}.",
356 "isConstructor" : false,
358 "memberOf" : "Roo.Component",
368 "type" : "Roo.Element",
369 "desc" : "The element"
374 "name" : "purgeListeners",
375 "desc" : "Removes all listeners for this object",
377 "isConstructor" : false,
379 "memberOf" : "Roo.util.Observable",
391 "desc" : "Appends an event handler to this element (shorthand for addListener)",
393 "isConstructor" : false,
395 "memberOf" : "Roo.util.Observable",
402 "name" : "eventName",
404 "desc" : "The type of event to listen for",
410 "desc" : "The method the event invokes",
416 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
422 "desc" : "(optional)",
431 "desc" : "Removes a listener (shorthand for removeListener)",
433 "isConstructor" : false,
435 "memberOf" : "Roo.util.Observable",
442 "name" : "eventName",
444 "desc" : "The type of event to listen for",
450 "desc" : "The handler to remove",
456 "desc" : "(optional) The scope (this object) for the handler",
464 "name" : "addEvents",
465 "desc" : "Used to define events on this Observable",
467 "isConstructor" : false,
469 "memberOf" : "Roo.util.Observable",
478 "desc" : "The object with the events defined",
486 "name" : "releaseCapture",
487 "desc" : "Removes <b>all</b> added captures from the Observable.",
489 "isConstructor" : false,
491 "memberOf" : "Roo.util.Observable",
499 "type" : "Observable",
500 "desc" : "The Observable to release",
508 "name" : "removeListener",
509 "desc" : "Removes a listener",
511 "isConstructor" : false,
513 "memberOf" : "Roo.util.Observable",
520 "name" : "eventName",
522 "desc" : "The type of event to listen for",
528 "desc" : "The handler to remove",
534 "desc" : "(optional) The scope (this object) for the handler",
542 "name" : "fireEvent",
543 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
545 "isConstructor" : false,
547 "memberOf" : "Roo.util.Observable",
554 "name" : "eventName",
561 "type" : "Object...",
562 "desc" : "Variable number of parameters are passed to handlers",
570 "desc" : "returns false if any of the handlers return false otherwise it returns true"
575 "name" : "hasListener",
576 "desc" : "Checks to see if this object has any listeners for a specified event",
578 "isConstructor" : false,
580 "memberOf" : "Roo.util.Observable",
587 "name" : "eventName",
589 "desc" : "The name of the event to check for",
597 "desc" : "True if the event is being listened for, else false"
603 "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.",
605 "isConstructor" : false,
607 "memberOf" : "Roo.util.Observable",
615 "type" : "Observable",
616 "desc" : "The Observable to capture",
622 "desc" : "The function to call",
628 "desc" : "(optional) The scope (this object) for the fn",
636 "name" : "addListener",
637 "desc" : "Appends an event handler to this component",
639 "isConstructor" : false,
641 "memberOf" : "Roo.util.Observable",
648 "name" : "eventName",
650 "desc" : "The type of event to listen for",
656 "desc" : "The method the event invokes",
662 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
668 "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>",
679 "desc" : "Fires when a color is selected",
680 "memberOf" : "Roo.ColorPalette",
688 "type" : "ColorPalette",
695 "desc" : "The 6-digit color hex code (without the # symbol)",
703 "name" : "beforerender",
704 "desc" : "Fires before the component is rendered. Return false to stop the render.",
705 "memberOf" : "Roo.Component",
713 "type" : "Roo.Component",
723 "desc" : "Fires after the component is disabled.",
724 "memberOf" : "Roo.Component",
732 "type" : "Roo.Component",
742 "desc" : "Fires after the component is rendered.",
743 "memberOf" : "Roo.Component",
751 "type" : "Roo.Component",
761 "desc" : "Fires after the component is destroyed.",
762 "memberOf" : "Roo.Component",
770 "type" : "Roo.Component",
780 "desc" : "Fires after the component is hidden.",
781 "memberOf" : "Roo.Component",
789 "type" : "Roo.Component",
798 "name" : "beforehide",
799 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
800 "memberOf" : "Roo.Component",
808 "type" : "Roo.Component",
818 "desc" : "Fires after the component is shown.",
819 "memberOf" : "Roo.Component",
827 "type" : "Roo.Component",
836 "name" : "beforeshow",
837 "desc" : "Fires before the component is shown. Return false to stop the show.",
838 "memberOf" : "Roo.Component",
846 "type" : "Roo.Component",
856 "desc" : "Fires after the component is enabled.",
857 "memberOf" : "Roo.Component",
865 "type" : "Roo.Component",
874 "name" : "beforedestroy",
875 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
876 "memberOf" : "Roo.Component",
884 "type" : "Roo.Component",