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>",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
21 "name" : "allowReselect",
23 "desc" : "If set to true then reselecting a color that is already selected fires the selection event",
24 "memberOf" : "Roo.ColorPalette",
31 "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\".",
32 "memberOf" : "Roo.Component",
41 "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.",
42 "memberOf" : "Roo.ColorPalette",
47 "name" : "allowDomMove",
49 "desc" : "Whether the component can move the Dom node when rendering (defaults to true).",
50 "memberOf" : "Roo.Component",
57 "desc" : "The CSS class to apply to the containing element (defaults to \"x-color-palette\")",
58 "memberOf" : "Roo.ColorPalette",
63 "name" : "actionMode",
65 "desc" : "which property holds the element that used for hide() / show() / disable() / enable()\ndefault is 'el'",
66 "memberOf" : "Roo.Component",
71 "name" : "disableClass",
73 "desc" : "CSS class added to the component when it is disabled (defaults to \"x-item-disabled\").",
74 "memberOf" : "Roo.Component",
82 "desc" : "Selects the specified color in the palette (fires the select event)",
84 "isConstructor" : false,
86 "memberOf" : "Roo.ColorPalette",
95 "desc" : "A valid 6-digit color hex code (# will be stripped if included)",
104 "desc" : "Returns the id of this component.",
106 "isConstructor" : false,
108 "memberOf" : "Roo.Component",
125 "desc" : "If this is a lazy rendering component, render it to its container element.",
127 "isConstructor" : false,
129 "memberOf" : "Roo.Component",
136 "name" : "container",
137 "type" : "String/HTMLElement/Element",
138 "desc" : "(optional) The element this component should be rendered into. If it is being applied to existing markup, this should be left off.",
147 "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}.",
149 "isConstructor" : false,
151 "memberOf" : "Roo.Component",
162 "name" : "isVisible",
163 "desc" : "Returns true if this component is visible.",
165 "isConstructor" : false,
167 "memberOf" : "Roo.Component",
178 "name" : "setDisabled",
179 "desc" : "Convenience function for setting disabled/enabled by boolean.",
181 "isConstructor" : false,
183 "memberOf" : "Roo.Component",
201 "desc" : "Hide this component.",
203 "isConstructor" : false,
205 "memberOf" : "Roo.Component",
215 "type" : "Roo.Component",
222 "desc" : "Try to focus this component.",
224 "isConstructor" : false,
226 "memberOf" : "Roo.Component",
233 "name" : "selectText",
235 "desc" : "True to also select the text in this component (if applicable)",
242 "type" : "Roo.Component",
249 "desc" : "Show this component.",
251 "isConstructor" : false,
253 "memberOf" : "Roo.Component",
263 "type" : "Roo.Component",
270 "desc" : "Enable this component.",
272 "isConstructor" : false,
274 "memberOf" : "Roo.Component",
284 "type" : "Roo.Component",
290 "name" : "setVisible",
291 "desc" : "Convenience function to hide or show this component by boolean.",
293 "isConstructor" : false,
295 "memberOf" : "Roo.Component",
304 "desc" : "True to show, false to hide",
311 "type" : "Roo.Component",
318 "desc" : "Disable this component.",
320 "isConstructor" : false,
322 "memberOf" : "Roo.Component",
332 "type" : "Roo.Component",
339 "desc" : "Returns the underlying {@link Roo.Element}.",
341 "isConstructor" : false,
343 "memberOf" : "Roo.Component",
353 "type" : "Roo.Element",
354 "desc" : "The element"
359 "name" : "purgeListeners",
360 "desc" : "Removes all listeners for this object",
362 "isConstructor" : false,
364 "memberOf" : "Roo.util.Observable",
376 "desc" : "Appends an event handler to this element (shorthand for addListener)",
378 "isConstructor" : false,
380 "memberOf" : "Roo.util.Observable",
387 "name" : "eventName",
389 "desc" : "The type of event to listen for",
395 "desc" : "The method the event invokes",
401 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
407 "desc" : "(optional)",
416 "desc" : "Removes a listener (shorthand for removeListener)",
418 "isConstructor" : false,
420 "memberOf" : "Roo.util.Observable",
427 "name" : "eventName",
429 "desc" : "The type of event to listen for",
435 "desc" : "The handler to remove",
441 "desc" : "(optional) The scope (this object) for the handler",
449 "name" : "addEvents",
450 "desc" : "Used to define events on this Observable",
452 "isConstructor" : false,
454 "memberOf" : "Roo.util.Observable",
463 "desc" : "The object with the events defined",
471 "name" : "releaseCapture",
472 "desc" : "Removes <b>all</b> added captures from the Observable.",
474 "isConstructor" : false,
476 "memberOf" : "Roo.util.Observable",
484 "type" : "Observable",
485 "desc" : "The Observable to release",
493 "name" : "removeListener",
494 "desc" : "Removes a listener",
496 "isConstructor" : false,
498 "memberOf" : "Roo.util.Observable",
505 "name" : "eventName",
507 "desc" : "The type of event to listen for",
513 "desc" : "The handler to remove",
519 "desc" : "(optional) The scope (this object) for the handler",
527 "name" : "fireEvent",
528 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
530 "isConstructor" : false,
532 "memberOf" : "Roo.util.Observable",
539 "name" : "eventName",
546 "type" : "Object...",
547 "desc" : "Variable number of parameters are passed to handlers",
555 "desc" : "returns false if any of the handlers return false otherwise it returns true"
560 "name" : "hasListener",
561 "desc" : "Checks to see if this object has any listeners for a specified event",
563 "isConstructor" : false,
565 "memberOf" : "Roo.util.Observable",
572 "name" : "eventName",
574 "desc" : "The name of the event to check for",
582 "desc" : "True if the event is being listened for, else false"
588 "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.",
590 "isConstructor" : false,
592 "memberOf" : "Roo.util.Observable",
600 "type" : "Observable",
601 "desc" : "The Observable to capture",
607 "desc" : "The function to call",
613 "desc" : "(optional) The scope (this object) for the fn",
621 "name" : "addListener",
622 "desc" : "Appends an event handler to this component",
624 "isConstructor" : false,
626 "memberOf" : "Roo.util.Observable",
633 "name" : "eventName",
635 "desc" : "The type of event to listen for",
641 "desc" : "The method the event invokes",
647 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
653 "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>",
664 "desc" : "Fires when a color is selected",
673 "type" : "ColorPalette",
680 "desc" : "The 6-digit color hex code (without the # symbol)",
688 "name" : "beforerender",
689 "desc" : "Fires before the component is rendered. Return false to stop the render.",
690 "memberOf" : "Roo.Component",
698 "type" : "Roo.Component",
708 "desc" : "Fires after the component is disabled.",
709 "memberOf" : "Roo.Component",
717 "type" : "Roo.Component",
727 "desc" : "Fires after the component is rendered.",
728 "memberOf" : "Roo.Component",
736 "type" : "Roo.Component",
746 "desc" : "Fires after the component is destroyed.",
747 "memberOf" : "Roo.Component",
755 "type" : "Roo.Component",
765 "desc" : "Fires after the component is hidden.",
766 "memberOf" : "Roo.Component",
774 "type" : "Roo.Component",
783 "name" : "beforehide",
784 "desc" : "Fires before the component is hidden. Return false to stop the hide.",
785 "memberOf" : "Roo.Component",
793 "type" : "Roo.Component",
803 "desc" : "Fires after the component is shown.",
804 "memberOf" : "Roo.Component",
812 "type" : "Roo.Component",
821 "name" : "beforeshow",
822 "desc" : "Fires before the component is shown. Return false to stop the show.",
823 "memberOf" : "Roo.Component",
831 "type" : "Roo.Component",
841 "desc" : "Fires after the component is enabled.",
842 "memberOf" : "Roo.Component",
850 "type" : "Roo.Component",
859 "name" : "beforedestroy",
860 "desc" : "Fires before the component is destroyed. Return false to stop the destroy.",
861 "memberOf" : "Roo.Component",
869 "type" : "Roo.Component",