f178c71991052aa66826a043bb998aac19800a5b.svn-base 81 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.menu.ColorItem-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.menu.ColorItem-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.menu.ColorItem-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.menu.ColorItem-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.menu.ColorItem"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
  8. </div>
  9. <div class="inheritance res-block">
  10. <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
  11. <img src="resources/elbow-end.gif"/><a ext:cls="Ext.Component" ext:member="" href="output/Ext.Component.html">Component</a>
  12. <img src="resources/elbow-end.gif"/><a ext:cls="Ext.menu.BaseItem" ext:member="" href="output/Ext.menu.BaseItem.html">BaseItem</a>
  13. <img src="resources/elbow-end.gif"/><a ext:cls="Ext.menu.Adapter" ext:member="" href="output/Ext.menu.Adapter.html">Adapter</a>
  14. <img src="resources/elbow-end.gif"/>ColorItem</pre></div>
  15. <h1>Class Ext.menu.ColorItem</h1>
  16. <table cellspacing="0">
  17. <tr><td class="label">Package:</td><td class="hd-info">Ext.menu</td></tr>
  18. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/ColorItem.js" target="_blank">ColorItem.js</a></td></tr>
  19. <tr><td class="label">Class:</td><td class="hd-info">ColorItem</td></tr>
  20. <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.menu.Adapter" ext:member="" href="output/Ext.menu.Adapter.html">Adapter</a></td></tr>
  21. </table>
  22. <div class="description">
  23. A menu item that wraps the <a ext:cls="Ext.ColorPalette" href="output/Ext.ColorPalette.html">Ext.ColorPalette</a> component. </div>
  24. <div class="hr"></div>
  25. <a id="Ext.menu.ColorItem-configs"></a>
  26. <h2>Config Options</h2>
  27. <table cellspacing="0" class="member-table">
  28. <tr>
  29. <th class="sig-header" colspan="2">Config Options</th>
  30. <th class="msource-header">Defined By</th>
  31. </tr>
  32. <tr class="config-row inherited">
  33. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  34. <td class="sig">
  35. <a id="Ext.menu.ColorItem-activeClass"></a>
  36. <b>activeClass</b> : String <div class="mdesc">
  37. The CSS class to use when the item becomes activated (defaults to "x-menu-item-active") </div>
  38. </td>
  39. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#activeClass" href="output/Ext.menu.BaseItem.html#activeClass">BaseItem</a></td>
  40. </tr>
  41. <tr class="config-row inherited alt">
  42. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  43. <td class="sig">
  44. <a id="Ext.menu.ColorItem-allowDomMove"></a>
  45. <b>allowDomMove</b> : Boolean <div class="mdesc">
  46. Whether the component can move the Dom node when rendering (defaults to true). </div>
  47. </td>
  48. <td class="msource"><a ext:cls="Ext.Component" ext:member="#allowDomMove" href="output/Ext.Component.html#allowDomMove">Component</a></td>
  49. </tr>
  50. <tr class="config-row inherited expandable">
  51. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  52. <td class="sig">
  53. <a id="Ext.menu.ColorItem-applyTo"></a>
  54. <b>applyTo</b> : Mixed <div class="mdesc">
  55. <div class="short">The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document ...</div>
  56. <div class="long">
  57. The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for <a ext:cls="Ext.Component" ext:member="renderTo" href="output/Ext.Component.html#renderTo">renderTo</a> will be ignored and the target element's parent node will automatically be used as the component's container. </div>
  58. </div>
  59. </td>
  60. <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyTo" href="output/Ext.Component.html#applyTo">Component</a></td>
  61. </tr>
  62. <tr class="config-row inherited alt expandable">
  63. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  64. <td class="sig">
  65. <a id="Ext.menu.ColorItem-autoShow"></a>
  66. <b>autoShow</b> : Boolean <div class="mdesc">
  67. <div class="short">True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render...</div>
  68. <div class="long">
  69. True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render (defaults to false). </div>
  70. </div>
  71. </td>
  72. <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoShow" href="output/Ext.Component.html#autoShow">Component</a></td>
  73. </tr>
  74. <tr class="config-row inherited">
  75. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  76. <td class="sig">
  77. <a id="Ext.menu.ColorItem-canActivate"></a>
  78. <b>canActivate</b> : Boolean <div class="mdesc">
  79. True if this item can be visually activated (defaults to false) </div>
  80. </td>
  81. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#canActivate" href="output/Ext.menu.BaseItem.html#canActivate">BaseItem</a></td>
  82. </tr>
  83. <tr class="config-row inherited alt expandable">
  84. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  85. <td class="sig">
  86. <a id="Ext.menu.ColorItem-cls"></a>
  87. <b>cls</b> : String <div class="mdesc">
  88. <div class="short">An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for a...</div>
  89. <div class="long">
  90. An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for adding customized styles to the component or any of its children using standard CSS rules. </div>
  91. </div>
  92. </td>
  93. <td class="msource"><a ext:cls="Ext.Component" ext:member="#cls" href="output/Ext.Component.html#cls">Component</a></td>
  94. </tr>
  95. <tr class="config-row inherited expandable">
  96. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  97. <td class="sig">
  98. <a id="Ext.menu.ColorItem-ctCls"></a>
  99. <b>ctCls</b> : String <div class="mdesc">
  100. <div class="short">An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for...</div>
  101. <div class="long">
  102. An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules. </div>
  103. </div>
  104. </td>
  105. <td class="msource"><a ext:cls="Ext.Component" ext:member="#ctCls" href="output/Ext.Component.html#ctCls">Component</a></td>
  106. </tr>
  107. <tr class="config-row inherited alt">
  108. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  109. <td class="sig">
  110. <a id="Ext.menu.ColorItem-disabledClass"></a>
  111. <b>disabledClass</b> : String <div class="mdesc">
  112. CSS class added to the component when it is disabled (defaults to "x-item-disabled"). </div>
  113. </td>
  114. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabledClass" href="output/Ext.Component.html#disabledClass">Component</a></td>
  115. </tr>
  116. <tr class="config-row inherited">
  117. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  118. <td class="sig">
  119. <a id="Ext.menu.ColorItem-handler"></a>
  120. <b>handler</b> : Function <div class="mdesc">
  121. A function that will handle the click event of this menu item (defaults to undefined) </div>
  122. </td>
  123. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#handler" href="output/Ext.menu.BaseItem.html#handler">BaseItem</a></td>
  124. </tr>
  125. <tr class="config-row inherited alt">
  126. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  127. <td class="sig">
  128. <a id="Ext.menu.ColorItem-hideDelay"></a>
  129. <b>hideDelay</b> : Number <div class="mdesc">
  130. Length of time in milliseconds to wait before hiding after a click (defaults to 100) </div>
  131. </td>
  132. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#hideDelay" href="output/Ext.menu.BaseItem.html#hideDelay">BaseItem</a></td>
  133. </tr>
  134. <tr class="config-row inherited expandable">
  135. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  136. <td class="sig">
  137. <a id="Ext.menu.ColorItem-hideMode"></a>
  138. <b>hideMode</b> : String <div class="mdesc">
  139. <div class="short">How this component should hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset posi...</div>
  140. <div class="long">
  141. How this component should hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". </div>
  142. </div>
  143. </td>
  144. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideMode" href="output/Ext.Component.html#hideMode">Component</a></td>
  145. </tr>
  146. <tr class="config-row inherited alt">
  147. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  148. <td class="sig">
  149. <a id="Ext.menu.ColorItem-hideOnClick"></a>
  150. <b>hideOnClick</b> : Boolean <div class="mdesc">
  151. True to hide the containing menu after this item is clicked (defaults to true) </div>
  152. </td>
  153. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#hideOnClick" href="output/Ext.menu.BaseItem.html#hideOnClick">BaseItem</a></td>
  154. </tr>
  155. <tr class="config-row inherited expandable">
  156. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  157. <td class="sig">
  158. <a id="Ext.menu.ColorItem-hideParent"></a>
  159. <b>hideParent</b> : Boolean <div class="mdesc">
  160. <div class="short">True to hide and show the component's container when hide/show is called on the component, false to hide and show the...</div>
  161. <div class="long">
  162. True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide button on a window by setting hide:true on the button when adding it to its parent container. </div>
  163. </div>
  164. </td>
  165. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideParent" href="output/Ext.Component.html#hideParent">Component</a></td>
  166. </tr>
  167. <tr class="config-row inherited alt">
  168. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  169. <td class="sig">
  170. <a id="Ext.menu.ColorItem-id"></a>
  171. <b>id</b> : String <div class="mdesc">
  172. The unique id of this component (defaults to an auto-assigned id). </div>
  173. </td>
  174. <td class="msource"><a ext:cls="Ext.Component" ext:member="#id" href="output/Ext.Component.html#id">Component</a></td>
  175. </tr>
  176. <tr class="config-row inherited expandable">
  177. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  178. <td class="sig">
  179. <a id="Ext.menu.ColorItem-listeners"></a>
  180. <b>listeners</b> : Object <div class="mdesc">
  181. <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
  182. <div class="long">
  183. A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div>
  184. </div>
  185. </td>
  186. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
  187. </tr>
  188. <tr class="config-row inherited alt expandable">
  189. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  190. <td class="sig">
  191. <a id="Ext.menu.ColorItem-plugins"></a>
  192. <b>plugins</b> : Object/Array <div class="mdesc">
  193. <div class="short">An object or array of objects that will provide custom functionality for this component. The only requirement for a v...</div>
  194. <div class="long">
  195. An object or array of objects that will provide custom functionality for this component. The only requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component. When a component is created, if any plugins are available, the component will call the init method on each plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the component as needed to provide its functionality. </div>
  196. </div>
  197. </td>
  198. <td class="msource"><a ext:cls="Ext.Component" ext:member="#plugins" href="output/Ext.Component.html#plugins">Component</a></td>
  199. </tr>
  200. <tr class="config-row inherited expandable">
  201. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  202. <td class="sig">
  203. <a id="Ext.menu.ColorItem-renderTo"></a>
  204. <b>renderTo</b> : Mixed <div class="mdesc">
  205. <div class="short">The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using...</div>
  206. <div class="long">
  207. The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using this config, a call to render() is not required. </div>
  208. </div>
  209. </td>
  210. <td class="msource"><a ext:cls="Ext.Component" ext:member="#renderTo" href="output/Ext.Component.html#renderTo">Component</a></td>
  211. </tr>
  212. <tr class="config-row inherited alt">
  213. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  214. <td class="sig">
  215. <a id="Ext.menu.ColorItem-scope"></a>
  216. <b>scope</b> : Object <div class="mdesc">
  217. The scope in which the handler function will be called. </div>
  218. </td>
  219. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#scope" href="output/Ext.menu.BaseItem.html#scope">BaseItem</a></td>
  220. </tr>
  221. <tr class="config-row inherited expandable">
  222. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  223. <td class="sig">
  224. <a id="Ext.menu.ColorItem-stateEvents"></a>
  225. <b>stateEvents</b> : Array <div class="mdesc">
  226. <div class="short">An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be...</div>
  227. <div class="long">
  228. An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be any types of events supported by this component, including browser or custom events (e.g., ['click', 'customerchange']). </div>
  229. </div>
  230. </td>
  231. <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateEvents" href="output/Ext.Component.html#stateEvents">Component</a></td>
  232. </tr>
  233. <tr class="config-row inherited alt">
  234. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  235. <td class="sig">
  236. <a id="Ext.menu.ColorItem-stateId"></a>
  237. <b>stateId</b> : String <div class="mdesc">
  238. The unique id for this component to use for state management purposes (defaults to the component id). </div>
  239. </td>
  240. <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateId" href="output/Ext.Component.html#stateId">Component</a></td>
  241. </tr>
  242. <tr class="config-row inherited expandable">
  243. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  244. <td class="sig">
  245. <a id="Ext.menu.ColorItem-style"></a>
  246. <b>style</b> : String <div class="mdesc">
  247. <div class="short">A custom style specification to be applied to this component's Element. Should be a valid argument to Ext.Element.app...</div>
  248. <div class="long">
  249. A custom style specification to be applied to this component's Element. Should be a valid argument to <a ext:cls="Ext.Element" ext:member="applyStyles" href="output/Ext.Element.html#applyStyles">Ext.Element.applyStyles</a>. </div>
  250. </div>
  251. </td>
  252. <td class="msource"><a ext:cls="Ext.Component" ext:member="#style" href="output/Ext.Component.html#style">Component</a></td>
  253. </tr>
  254. <tr class="config-row inherited alt expandable">
  255. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  256. <td class="sig">
  257. <a id="Ext.menu.ColorItem-xtype"></a>
  258. <b>xtype</b> : String <div class="mdesc">
  259. <div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div>
  260. <div class="long">
  261. The registered xtype to create. This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a <i>Component config object</i>. The xtype will be looked up at render time up to determine what type of child Component to create.<br><br> The predefined xtypes are listed <a ext:cls="Ext.Component" href="output/Ext.Component.html">here</a>. <br><br> If you subclass Components to create your own Components, you may register them using <a ext:cls="Ext.ComponentMgr" ext:member="registerType" href="output/Ext.ComponentMgr.html#registerType">Ext.ComponentMgr.registerType</a> in order to be able to take advantage of lazy instantiation and rendering. </div>
  262. </div>
  263. </td>
  264. <td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td>
  265. </tr>
  266. </table>
  267. <a id="Ext.menu.ColorItem-props"></a>
  268. <h2>Public Properties</h2>
  269. <table cellspacing="0" class="member-table">
  270. <tr>
  271. <th class="sig-header" colspan="2">Property</th>
  272. <th class="msource-header">Defined By</th>
  273. </tr>
  274. <tr class="property-row inherited">
  275. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  276. <td class="sig">
  277. <a id="Ext.menu.ColorItem-disabled"></a>
  278. <b>disabled</b> : Boolean <div class="mdesc">
  279. True if this component is disabled. Read-only. </div>
  280. </td>
  281. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>
  282. </tr>
  283. <tr class="property-row inherited alt">
  284. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  285. <td class="sig">
  286. <a id="Ext.menu.ColorItem-hidden"></a>
  287. <b>hidden</b> : Boolean <div class="mdesc">
  288. True if this component is hidden. Read-only. </div>
  289. </td>
  290. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>
  291. </tr>
  292. <tr class="property-row inherited">
  293. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  294. <td class="sig">
  295. <a id="Ext.menu.ColorItem-initialConfig"></a>
  296. <b>initialConfig</b> : Object <div class="mdesc">
  297. This Component's initial configuration specification. Read-only. </div>
  298. </td>
  299. <td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td>
  300. </tr>
  301. <tr class="property-row inherited alt expandable">
  302. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  303. <td class="sig">
  304. <a id="Ext.menu.ColorItem-ownerCt"></a>
  305. <b>ownerCt</b> : Ext.Container <div class="mdesc">
  306. <div class="short">The component's owner Ext.Container (defaults to undefined, and is set automatically when
  307. the component is added to a...</div>
  308. <div class="long">
  309. The component's owner <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (defaults to undefined, and is set automatically when
  310. the component is added to a container). Read-only. </div>
  311. </div>
  312. </td>
  313. <td class="msource"><a ext:cls="Ext.Component" ext:member="#ownerCt" href="output/Ext.Component.html#ownerCt">Component</a></td>
  314. </tr>
  315. <tr class="property-row">
  316. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  317. <td class="sig">
  318. <a id="Ext.menu.ColorItem-palette"></a>
  319. <b>palette</b> : Ext.ColorPalette <div class="mdesc">
  320. The Ext.ColorPalette object </div>
  321. </td>
  322. <td class="msource">ColorItem</td>
  323. </tr>
  324. <tr class="property-row inherited alt">
  325. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  326. <td class="sig">
  327. <a id="Ext.menu.ColorItem-rendered"></a>
  328. <b>rendered</b> : Boolean <div class="mdesc">
  329. True if this component has been rendered. Read-only. </div>
  330. </td>
  331. <td class="msource"><a ext:cls="Ext.Component" ext:member="#rendered" href="output/Ext.Component.html#rendered">Component</a></td>
  332. </tr>
  333. </table>
  334. <a id="Ext.menu.ColorItem-methods"></a>
  335. <h2>Public Methods</h2>
  336. <table cellspacing="0" class="member-table">
  337. <tr>
  338. <th class="sig-header" colspan="2">Method</th>
  339. <th class="msource-header">Defined By</th>
  340. </tr>
  341. <tr class="method-row expandable">
  342. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  343. <td class="sig">
  344. <a id="Ext.menu.ColorItem-ColorItem"></a>
  345. <b>ColorItem</b>(&nbsp;<code>Object config</code>&nbsp;) <div class="mdesc">
  346. <div class="short">Creates a new ColorItem</div>
  347. <div class="long">
  348. Creates a new ColorItem <div class="mdetail-params">
  349. <strong>Parameters:</strong>
  350. <ul><li><code>config</code> : Object<div class="sub-desc">Configuration options</div></li> </ul>
  351. <strong>Returns:</strong>
  352. <ul>
  353. <li><code></code></li>
  354. </ul>
  355. </div>
  356. </div>
  357. </div>
  358. </td>
  359. <td class="msource">ColorItem</td>
  360. </tr>
  361. <tr class="method-row inherited alt expandable">
  362. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  363. <td class="sig">
  364. <a id="Ext.menu.ColorItem-addClass"></a>
  365. <b>addClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void <div class="mdesc">
  366. <div class="short">Adds a CSS class to the component's underlying element.</div>
  367. <div class="long">
  368. Adds a CSS class to the component's underlying element. <div class="mdetail-params">
  369. <strong>Parameters:</strong>
  370. <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to add</div></li> </ul>
  371. <strong>Returns:</strong>
  372. <ul>
  373. <li><code>void</code></li>
  374. </ul>
  375. </div>
  376. </div>
  377. </div>
  378. </td>
  379. <td class="msource"><a ext:cls="Ext.Component" ext:member="#addClass" href="output/Ext.Component.html#addClass">Component</a></td>
  380. </tr>
  381. <tr class="method-row inherited expandable">
  382. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  383. <td class="sig">
  384. <a id="Ext.menu.ColorItem-addEvents"></a>
  385. <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void <div class="mdesc">
  386. <div class="short">Used to define events on this Observable</div>
  387. <div class="long">
  388. Used to define events on this Observable <div class="mdetail-params">
  389. <strong>Parameters:</strong>
  390. <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
  391. <strong>Returns:</strong>
  392. <ul>
  393. <li><code>void</code></li>
  394. </ul>
  395. </div>
  396. </div>
  397. </div>
  398. </td>
  399. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
  400. </tr>
  401. <tr class="method-row inherited alt expandable">
  402. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  403. <td class="sig">
  404. <a id="Ext.menu.ColorItem-addListener"></a>
  405. <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void <div class="mdesc">
  406. <div class="short">Appends an event handler to this component</div>
  407. <div class="long">
  408. Appends an event handler to this component <div class="mdetail-params">
  409. <strong>Parameters:</strong>
  410. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
  411. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
  412. properties. This may contain any of the following properties:<ul>
  413. <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
  414. <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
  415. <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
  416. <li>buffer {Number} Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
  417. by the specified number of milliseconds. If the event fires again within that time, the original
  418. handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
  419. </ul><br>
  420. <p>
  421. <b>Combining Options</b><br>
  422. Using the options argument, it is possible to combine different types of listeners:<br>
  423. <br>
  424. A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
  425. <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
  426. single: true,
  427. delay: 100,
  428. forumId: 4
  429. });</code></pre>
  430. <p>
  431. <b>Attaching multiple handlers in 1 call</b><br>
  432. The method also allows for a single argument to be passed which is a config object containing properties
  433. which specify multiple handlers.
  434. <p>
  435. <pre><code>foo.on({
  436. <em>'click'</em> : {
  437. fn: <b>this</b>.onClick,
  438. scope: <b>this</b>,
  439. delay: 100
  440. },
  441. <em>'mouseover'</em> : {
  442. fn: <b>this</b>.onMouseOver,
  443. scope: <b>this</b>
  444. },
  445. <em>'mouseout'</em> : {
  446. fn: <b>this</b>.onMouseOut,
  447. scope: <b>this</b>
  448. }
  449. });</code></pre>
  450. <p>
  451. Or a shorthand syntax:<br>
  452. <pre><code>foo.on({
  453. <em>'click'</em> : <b>this</b>.onClick,
  454. <em>'mouseover'</em> : <b>this</b>.onMouseOver,
  455. <em>'mouseout'</em> : <b>this</b>.onMouseOut,
  456. scope: <b>this</b>
  457. });</code></pre></div></li> </ul>
  458. <strong>Returns:</strong>
  459. <ul>
  460. <li><code>void</code></li>
  461. </ul>
  462. </div>
  463. </div>
  464. </div>
  465. </td>
  466. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
  467. </tr>
  468. <tr class="method-row inherited expandable">
  469. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  470. <td class="sig">
  471. <a id="Ext.menu.ColorItem-applyToMarkup"></a>
  472. <b>applyToMarkup</b>(&nbsp;<code>String/HTMLElement el</code>&nbsp;) : void <div class="mdesc">
  473. <div class="short">Apply this component to existing markup that is valid. With this function, no call to render() is required.</div>
  474. <div class="long">
  475. Apply this component to existing markup that is valid. With this function, no call to render() is required. <div class="mdetail-params">
  476. <strong>Parameters:</strong>
  477. <ul><li><code>el</code> : String/HTMLElement<div class="sub-desc"></div></li> </ul>
  478. <strong>Returns:</strong>
  479. <ul>
  480. <li><code>void</code></li>
  481. </ul>
  482. </div>
  483. </div>
  484. </div>
  485. </td>
  486. <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyToMarkup" href="output/Ext.Component.html#applyToMarkup">Component</a></td>
  487. </tr>
  488. <tr class="method-row inherited alt expandable">
  489. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  490. <td class="sig">
  491. <a id="Ext.menu.ColorItem-cloneConfig"></a>
  492. <b>cloneConfig</b>(&nbsp;<code>Object overrides</code>&nbsp;) : Ext.Component <div class="mdesc">
  493. <div class="short">Clone the current component using the original config values passed into this instance by default.</div>
  494. <div class="long">
  495. Clone the current component using the original config values passed into this instance by default. <div class="mdetail-params">
  496. <strong>Parameters:</strong>
  497. <ul><li><code>overrides</code> : Object<div class="sub-desc">A new config containing any properties to override in the cloned version.
  498. An id property can be passed on this object, otherwise one will be generated to avoid duplicates.</div></li> </ul>
  499. <strong>Returns:</strong>
  500. <ul>
  501. <li><code>Ext.Component</code><div class="sub-desc">clone The cloned copy of this component</div></li>
  502. </ul>
  503. </div>
  504. </div>
  505. </div>
  506. </td>
  507. <td class="msource"><a ext:cls="Ext.Component" ext:member="#cloneConfig" href="output/Ext.Component.html#cloneConfig">Component</a></td>
  508. </tr>
  509. <tr class="method-row inherited expandable">
  510. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  511. <td class="sig">
  512. <a id="Ext.menu.ColorItem-destroy"></a>
  513. <b>destroy</b>() : void <div class="mdesc">
  514. <div class="short">Destroys this component by purging any event listeners, removing the component's element from the DOM,
  515. removing the c...</div>
  516. <div class="long">
  517. Destroys this component by purging any event listeners, removing the component's element from the DOM,
  518. removing the component from its <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (if applicable) and unregistering it from
  519. <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. Destruction is generally handled automatically by the framework and this method
  520. should usually not need to be called directly. <div class="mdetail-params">
  521. <strong>Parameters:</strong>
  522. <ul><li>None.</li> </ul>
  523. <strong>Returns:</strong>
  524. <ul>
  525. <li><code>void</code></li>
  526. </ul>
  527. </div>
  528. </div>
  529. </div>
  530. </td>
  531. <td class="msource"><a ext:cls="Ext.Component" ext:member="#destroy" href="output/Ext.Component.html#destroy">Component</a></td>
  532. </tr>
  533. <tr class="method-row inherited alt expandable">
  534. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  535. <td class="sig">
  536. <a id="Ext.menu.ColorItem-disable"></a>
  537. <b>disable</b>() : Ext.Component <div class="mdesc">
  538. <div class="short">Disable this component.</div>
  539. <div class="long">
  540. Disable this component. <div class="mdetail-params">
  541. <strong>Parameters:</strong>
  542. <ul><li>None.</li> </ul>
  543. <strong>Returns:</strong>
  544. <ul>
  545. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  546. </ul>
  547. </div>
  548. </div>
  549. </div>
  550. </td>
  551. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disable" href="output/Ext.Component.html#disable">Component</a></td>
  552. </tr>
  553. <tr class="method-row inherited expandable">
  554. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  555. <td class="sig">
  556. <a id="Ext.menu.ColorItem-enable"></a>
  557. <b>enable</b>() : Ext.Component <div class="mdesc">
  558. <div class="short">Enable this component.</div>
  559. <div class="long">
  560. Enable this component. <div class="mdetail-params">
  561. <strong>Parameters:</strong>
  562. <ul><li>None.</li> </ul>
  563. <strong>Returns:</strong>
  564. <ul>
  565. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  566. </ul>
  567. </div>
  568. </div>
  569. </div>
  570. </td>
  571. <td class="msource"><a ext:cls="Ext.Component" ext:member="#enable" href="output/Ext.Component.html#enable">Component</a></td>
  572. </tr>
  573. <tr class="method-row inherited alt expandable">
  574. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  575. <td class="sig">
  576. <a id="Ext.menu.ColorItem-fireEvent"></a>
  577. <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean <div class="mdesc">
  578. <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
  579. <div class="long">
  580. Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
  581. <strong>Parameters:</strong>
  582. <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
  583. <strong>Returns:</strong>
  584. <ul>
  585. <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
  586. </ul>
  587. </div>
  588. </div>
  589. </div>
  590. </td>
  591. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
  592. </tr>
  593. <tr class="method-row inherited expandable">
  594. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  595. <td class="sig">
  596. <a id="Ext.menu.ColorItem-focus"></a>
  597. <b>focus</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean selectText</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Number delay</code>]</span>&nbsp;) : Ext.Component <div class="mdesc">
  598. <div class="short">Try to focus this component.</div>
  599. <div class="long">
  600. Try to focus this component. <div class="mdetail-params">
  601. <strong>Parameters:</strong>
  602. <ul><li><code>selectText</code> : Boolean<div class="sub-desc">(optional) If applicable, true to also select the text in this component</div></li><li><code>delay</code> : Boolean/Number<div class="sub-desc">(optional) Delay the focus this number of milliseconds (true for 10 milliseconds)</div></li> </ul>
  603. <strong>Returns:</strong>
  604. <ul>
  605. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  606. </ul>
  607. </div>
  608. </div>
  609. </div>
  610. </td>
  611. <td class="msource"><a ext:cls="Ext.Component" ext:member="#focus" href="output/Ext.Component.html#focus">Component</a></td>
  612. </tr>
  613. <tr class="method-row inherited alt expandable">
  614. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  615. <td class="sig">
  616. <a id="Ext.menu.ColorItem-getEl"></a>
  617. <b>getEl</b>() : Ext.Element <div class="mdesc">
  618. <div class="short">Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>.</div>
  619. <div class="long">
  620. Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>. <div class="mdetail-params">
  621. <strong>Parameters:</strong>
  622. <ul><li>None.</li> </ul>
  623. <strong>Returns:</strong>
  624. <ul>
  625. <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>
  626. </ul>
  627. </div>
  628. </div>
  629. </div>
  630. </td>
  631. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getEl" href="output/Ext.Component.html#getEl">Component</a></td>
  632. </tr>
  633. <tr class="method-row inherited expandable">
  634. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  635. <td class="sig">
  636. <a id="Ext.menu.ColorItem-getId"></a>
  637. <b>getId</b>() : String <div class="mdesc">
  638. <div class="short">Returns the id of this component.</div>
  639. <div class="long">
  640. Returns the id of this component. <div class="mdetail-params">
  641. <strong>Parameters:</strong>
  642. <ul><li>None.</li> </ul>
  643. <strong>Returns:</strong>
  644. <ul>
  645. <li><code>String</code></li>
  646. </ul>
  647. </div>
  648. </div>
  649. </div>
  650. </td>
  651. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getId" href="output/Ext.Component.html#getId">Component</a></td>
  652. </tr>
  653. <tr class="method-row inherited alt expandable">
  654. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  655. <td class="sig">
  656. <a id="Ext.menu.ColorItem-getItemId"></a>
  657. <b>getItemId</b>() : String <div class="mdesc">
  658. <div class="short">Returns the item id of this component.</div>
  659. <div class="long">
  660. Returns the item id of this component. <div class="mdetail-params">
  661. <strong>Parameters:</strong>
  662. <ul><li>None.</li> </ul>
  663. <strong>Returns:</strong>
  664. <ul>
  665. <li><code>String</code></li>
  666. </ul>
  667. </div>
  668. </div>
  669. </div>
  670. </td>
  671. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getItemId" href="output/Ext.Component.html#getItemId">Component</a></td>
  672. </tr>
  673. <tr class="method-row inherited expandable">
  674. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  675. <td class="sig">
  676. <a id="Ext.menu.ColorItem-getXType"></a>
  677. <b>getXType</b>() : String <div class="mdesc">
  678. <div class="short">Gets the xtype for this component as registered with Ext.ComponentMgr. For a list of all
  679. available xtypes, see the Ex...</div>
  680. <div class="long">
  681. Gets the xtype for this component as registered with <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. For a list of all
  682. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  683. <pre><code>var t = <b>new</b> Ext.form.TextField();
  684. alert(t.getXType()); // alerts <em>'textfield'</em></code></pre> <div class="mdetail-params">
  685. <strong>Parameters:</strong>
  686. <ul><li>None.</li> </ul>
  687. <strong>Returns:</strong>
  688. <ul>
  689. <li><code>String</code><div class="sub-desc">The xtype</div></li>
  690. </ul>
  691. </div>
  692. </div>
  693. </div>
  694. </td>
  695. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXType" href="output/Ext.Component.html#getXType">Component</a></td>
  696. </tr>
  697. <tr class="method-row inherited alt expandable">
  698. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  699. <td class="sig">
  700. <a id="Ext.menu.ColorItem-getXTypes"></a>
  701. <b>getXTypes</b>() : String <div class="mdesc">
  702. <div class="short">Returns this component's xtype hierarchy as a slash-delimited string. For a list of all
  703. available xtypes, see the Ext...</div>
  704. <div class="long">
  705. Returns this component's xtype hierarchy as a slash-delimited string. For a list of all
  706. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  707. <pre><code>
  708. var t = new Ext.form.TextField();
  709. alert(t.getXTypes()); // alerts 'component/box/field/textfield'</pre></code> <div class="mdetail-params">
  710. <strong>Parameters:</strong>
  711. <ul><li>None.</li> </ul>
  712. <strong>Returns:</strong>
  713. <ul>
  714. <li><code>String</code><div class="sub-desc">The xtype hierarchy string</div></li>
  715. </ul>
  716. </div>
  717. </div>
  718. </div>
  719. </td>
  720. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXTypes" href="output/Ext.Component.html#getXTypes">Component</a></td>
  721. </tr>
  722. <tr class="method-row inherited expandable">
  723. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  724. <td class="sig">
  725. <a id="Ext.menu.ColorItem-hasListener"></a>
  726. <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean <div class="mdesc">
  727. <div class="short">Checks to see if this object has any listeners for a specified event</div>
  728. <div class="long">
  729. Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
  730. <strong>Parameters:</strong>
  731. <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
  732. <strong>Returns:</strong>
  733. <ul>
  734. <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
  735. </ul>
  736. </div>
  737. </div>
  738. </div>
  739. </td>
  740. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
  741. </tr>
  742. <tr class="method-row inherited alt expandable">
  743. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  744. <td class="sig">
  745. <a id="Ext.menu.ColorItem-hide"></a>
  746. <b>hide</b>() : Ext.Component <div class="mdesc">
  747. <div class="short">Hide this component.</div>
  748. <div class="long">
  749. Hide this component. <div class="mdetail-params">
  750. <strong>Parameters:</strong>
  751. <ul><li>None.</li> </ul>
  752. <strong>Returns:</strong>
  753. <ul>
  754. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  755. </ul>
  756. </div>
  757. </div>
  758. </div>
  759. </td>
  760. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hide" href="output/Ext.Component.html#hide">Component</a></td>
  761. </tr>
  762. <tr class="method-row inherited expandable">
  763. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  764. <td class="sig">
  765. <a id="Ext.menu.ColorItem-isVisible"></a>
  766. <b>isVisible</b>() : void <div class="mdesc">
  767. <div class="short">Returns true if this component is visible.</div>
  768. <div class="long">
  769. Returns true if this component is visible. <div class="mdetail-params">
  770. <strong>Parameters:</strong>
  771. <ul><li>None.</li> </ul>
  772. <strong>Returns:</strong>
  773. <ul>
  774. <li><code>void</code></li>
  775. </ul>
  776. </div>
  777. </div>
  778. </div>
  779. </td>
  780. <td class="msource"><a ext:cls="Ext.Component" ext:member="#isVisible" href="output/Ext.Component.html#isVisible">Component</a></td>
  781. </tr>
  782. <tr class="method-row inherited alt expandable">
  783. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  784. <td class="sig">
  785. <a id="Ext.menu.ColorItem-isXType"></a>
  786. <b>isXType</b>(&nbsp;<code>String xtype</code>, <span class="optional" title="Optional">[<code>Boolean shallow</code>]</span>&nbsp;) : void <div class="mdesc">
  787. <div class="short">Tests whether or not this component is of a specific xtype. This can test whether this component is descended
  788. from th...</div>
  789. <div class="long">
  790. Tests whether or not this component is of a specific xtype. This can test whether this component is descended
  791. from the xtype (default) or whether it is directly of the xtype specified (shallow = true). For a list of all
  792. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  793. <pre><code>var t = <b>new</b> Ext.form.TextField();
  794. <b>var</b> isText = t.isXType(<em>'textfield'</em>); <i>// true</i>
  795. <b>var</b> isBoxSubclass = t.isXType(<em>'box'</em>); <i>// true, descended from BoxComponent</i>
  796. <b>var</b> isBoxInstance = t.isXType(<em>'box'</em>, true); // false, not a direct BoxComponent instance</code></pre> <div class="mdetail-params">
  797. <strong>Parameters:</strong>
  798. <ul><li><code>xtype</code> : String<div class="sub-desc">The xtype to check for this component</div></li><li><code>shallow</code> : Boolean<div class="sub-desc">(optional) False to check whether this component is descended from the xtype (this is
  799. the default), or true to check whether this component is directly of the specified xtype.</div></li> </ul>
  800. <strong>Returns:</strong>
  801. <ul>
  802. <li><code>void</code></li>
  803. </ul>
  804. </div>
  805. </div>
  806. </div>
  807. </td>
  808. <td class="msource"><a ext:cls="Ext.Component" ext:member="#isXType" href="output/Ext.Component.html#isXType">Component</a></td>
  809. </tr>
  810. <tr class="method-row inherited expandable">
  811. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  812. <td class="sig">
  813. <a id="Ext.menu.ColorItem-on"></a>
  814. <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void <div class="mdesc">
  815. <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
  816. <div class="long">
  817. Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
  818. <strong>Parameters:</strong>
  819. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
  820. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  821. <strong>Returns:</strong>
  822. <ul>
  823. <li><code>void</code></li>
  824. </ul>
  825. </div>
  826. </div>
  827. </div>
  828. </td>
  829. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
  830. </tr>
  831. <tr class="method-row inherited alt expandable">
  832. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  833. <td class="sig">
  834. <a id="Ext.menu.ColorItem-purgeListeners"></a>
  835. <b>purgeListeners</b>() : void <div class="mdesc">
  836. <div class="short">Removes all listeners for this object</div>
  837. <div class="long">
  838. Removes all listeners for this object <div class="mdetail-params">
  839. <strong>Parameters:</strong>
  840. <ul><li>None.</li> </ul>
  841. <strong>Returns:</strong>
  842. <ul>
  843. <li><code>void</code></li>
  844. </ul>
  845. </div>
  846. </div>
  847. </div>
  848. </td>
  849. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
  850. </tr>
  851. <tr class="method-row inherited expandable">
  852. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  853. <td class="sig">
  854. <a id="Ext.menu.ColorItem-removeClass"></a>
  855. <b>removeClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void <div class="mdesc">
  856. <div class="short">Removes a CSS class from the component's underlying element.</div>
  857. <div class="long">
  858. Removes a CSS class from the component's underlying element. <div class="mdetail-params">
  859. <strong>Parameters:</strong>
  860. <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to remove</div></li> </ul>
  861. <strong>Returns:</strong>
  862. <ul>
  863. <li><code>void</code></li>
  864. </ul>
  865. </div>
  866. </div>
  867. </div>
  868. </td>
  869. <td class="msource"><a ext:cls="Ext.Component" ext:member="#removeClass" href="output/Ext.Component.html#removeClass">Component</a></td>
  870. </tr>
  871. <tr class="method-row inherited alt expandable">
  872. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  873. <td class="sig">
  874. <a id="Ext.menu.ColorItem-removeListener"></a>
  875. <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  876. <div class="short">Removes a listener</div>
  877. <div class="long">
  878. Removes a listener <div class="mdetail-params">
  879. <strong>Parameters:</strong>
  880. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  881. <strong>Returns:</strong>
  882. <ul>
  883. <li><code>void</code></li>
  884. </ul>
  885. </div>
  886. </div>
  887. </div>
  888. </td>
  889. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
  890. </tr>
  891. <tr class="method-row inherited expandable">
  892. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  893. <td class="sig">
  894. <a id="Ext.menu.ColorItem-render"></a>
  895. <b>render</b>(&nbsp;<span class="optional" title="Optional">[<code>Mixed container</code>]</span>, <span class="optional" title="Optional">[<code>String/Number position</code>]</span>&nbsp;) : void <div class="mdesc">
  896. <div class="short">If this is a lazy rendering component, render it to its container element.</div>
  897. <div class="long">
  898. If this is a lazy rendering component, render it to its container element. <div class="mdetail-params">
  899. <strong>Parameters:</strong>
  900. <ul><li><code>container</code> : Mixed<div class="sub-desc">(optional) The element this component should be rendered into. If it is being
  901. applied to existing markup, this should be left off.</div></li><li><code>position</code> : String/Number<div class="sub-desc">(optional) The element ID or DOM node index within the container <b>before</b>
  902. which this component will be inserted (defaults to appending to the end of the container)</div></li> </ul>
  903. <strong>Returns:</strong>
  904. <ul>
  905. <li><code>void</code></li>
  906. </ul>
  907. </div>
  908. </div>
  909. </div>
  910. </td>
  911. <td class="msource"><a ext:cls="Ext.Component" ext:member="#render" href="output/Ext.Component.html#render">Component</a></td>
  912. </tr>
  913. <tr class="method-row inherited alt expandable">
  914. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  915. <td class="sig">
  916. <a id="Ext.menu.ColorItem-resumeEvents"></a>
  917. <b>resumeEvents</b>() : void <div class="mdesc">
  918. <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
  919. <div class="long">
  920. Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params">
  921. <strong>Parameters:</strong>
  922. <ul><li>None.</li> </ul>
  923. <strong>Returns:</strong>
  924. <ul>
  925. <li><code>void</code></li>
  926. </ul>
  927. </div>
  928. </div>
  929. </div>
  930. </td>
  931. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
  932. </tr>
  933. <tr class="method-row inherited expandable">
  934. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  935. <td class="sig">
  936. <a id="Ext.menu.ColorItem-setDisabled"></a>
  937. <b>setDisabled</b>(&nbsp;<code>Boolean disabled</code>&nbsp;) : void <div class="mdesc">
  938. <div class="short">Convenience function for setting disabled/enabled by boolean.</div>
  939. <div class="long">
  940. Convenience function for setting disabled/enabled by boolean. <div class="mdetail-params">
  941. <strong>Parameters:</strong>
  942. <ul><li><code>disabled</code> : Boolean<div class="sub-desc"></div></li> </ul>
  943. <strong>Returns:</strong>
  944. <ul>
  945. <li><code>void</code></li>
  946. </ul>
  947. </div>
  948. </div>
  949. </div>
  950. </td>
  951. <td class="msource"><a ext:cls="Ext.Component" ext:member="#setDisabled" href="output/Ext.Component.html#setDisabled">Component</a></td>
  952. </tr>
  953. <tr class="method-row inherited alt expandable">
  954. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  955. <td class="sig">
  956. <a id="Ext.menu.ColorItem-setHandler"></a>
  957. <b>setHandler</b>(&nbsp;<code>Function handler</code>, <code>Object scope</code>&nbsp;) : void <div class="mdesc">
  958. <div class="short">Sets the function that will handle click events for this item (equivalent to passing in the handler
  959. config property)....</div>
  960. <div class="long">
  961. Sets the function that will handle click events for this item (equivalent to passing in the <a ext:cls="Ext.menu.BaseItem" ext:member="handler" href="output/Ext.menu.BaseItem.html#handler">handler</a>
  962. config property). If an existing handler is already registered, it will be unregistered for you. <div class="mdetail-params">
  963. <strong>Parameters:</strong>
  964. <ul><li><code>handler</code> : Function<div class="sub-desc">The function that should be called on click</div></li><li><code>scope</code> : Object<div class="sub-desc">The scope that should be passed to the handler</div></li> </ul>
  965. <strong>Returns:</strong>
  966. <ul>
  967. <li><code>void</code></li>
  968. </ul>
  969. </div>
  970. </div>
  971. </div>
  972. </td>
  973. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#setHandler" href="output/Ext.menu.BaseItem.html#setHandler">BaseItem</a></td>
  974. </tr>
  975. <tr class="method-row inherited expandable">
  976. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  977. <td class="sig">
  978. <a id="Ext.menu.ColorItem-setVisible"></a>
  979. <b>setVisible</b>(&nbsp;<code>Boolean visible</code>&nbsp;) : Ext.Component <div class="mdesc">
  980. <div class="short">Convenience function to hide or show this component by boolean.</div>
  981. <div class="long">
  982. Convenience function to hide or show this component by boolean. <div class="mdetail-params">
  983. <strong>Parameters:</strong>
  984. <ul><li><code>visible</code> : Boolean<div class="sub-desc">True to show, false to hide</div></li> </ul>
  985. <strong>Returns:</strong>
  986. <ul>
  987. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  988. </ul>
  989. </div>
  990. </div>
  991. </div>
  992. </td>
  993. <td class="msource"><a ext:cls="Ext.Component" ext:member="#setVisible" href="output/Ext.Component.html#setVisible">Component</a></td>
  994. </tr>
  995. <tr class="method-row inherited alt expandable">
  996. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  997. <td class="sig">
  998. <a id="Ext.menu.ColorItem-show"></a>
  999. <b>show</b>() : Ext.Component <div class="mdesc">
  1000. <div class="short">Show this component.</div>
  1001. <div class="long">
  1002. Show this component. <div class="mdetail-params">
  1003. <strong>Parameters:</strong>
  1004. <ul><li>None.</li> </ul>
  1005. <strong>Returns:</strong>
  1006. <ul>
  1007. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  1008. </ul>
  1009. </div>
  1010. </div>
  1011. </div>
  1012. </td>
  1013. <td class="msource"><a ext:cls="Ext.Component" ext:member="#show" href="output/Ext.Component.html#show">Component</a></td>
  1014. </tr>
  1015. <tr class="method-row inherited expandable">
  1016. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1017. <td class="sig">
  1018. <a id="Ext.menu.ColorItem-suspendEvents"></a>
  1019. <b>suspendEvents</b>() : void <div class="mdesc">
  1020. <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
  1021. <div class="long">
  1022. Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
  1023. <strong>Parameters:</strong>
  1024. <ul><li>None.</li> </ul>
  1025. <strong>Returns:</strong>
  1026. <ul>
  1027. <li><code>void</code></li>
  1028. </ul>
  1029. </div>
  1030. </div>
  1031. </div>
  1032. </td>
  1033. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
  1034. </tr>
  1035. <tr class="method-row inherited alt expandable">
  1036. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1037. <td class="sig">
  1038. <a id="Ext.menu.ColorItem-un"></a>
  1039. <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  1040. <div class="short">Removes a listener (shorthand for removeListener)</div>
  1041. <div class="long">
  1042. Removes a listener (shorthand for removeListener) <div class="mdetail-params">
  1043. <strong>Parameters:</strong>
  1044. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  1045. <strong>Returns:</strong>
  1046. <ul>
  1047. <li><code>void</code></li>
  1048. </ul>
  1049. </div>
  1050. </div>
  1051. </div>
  1052. </td>
  1053. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
  1054. </tr>
  1055. </table>
  1056. <a id="Ext.menu.ColorItem-events"></a>
  1057. <h2>Public Events</h2>
  1058. <table cellspacing="0" class="member-table">
  1059. <tr>
  1060. <th class="sig-header" colspan="2">Event</th>
  1061. <th class="msource-header">Defined By</th>
  1062. </tr>
  1063. <tr class="event-row inherited expandable">
  1064. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1065. <td class="sig">
  1066. <a id="Ext.menu.ColorItem-activate"></a>
  1067. <b>activate</b> : (&nbsp;<code>Ext.menu.BaseItem this</code>&nbsp;) <div class="mdesc">
  1068. <div class="short">Fires when this item is activated</div>
  1069. <div class="long">
  1070. Fires when this item is activated <div class="mdetail-params">
  1071. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1072. <ul><li><code>this</code> : Ext.menu.BaseItem<div class="sub-desc"></div></li> </ul>
  1073. </div>
  1074. </div>
  1075. </div>
  1076. </td>
  1077. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#event-activate" href="output/Ext.menu.BaseItem.html#event-activate">BaseItem</a></td>
  1078. </tr>
  1079. <tr class="event-row inherited alt expandable">
  1080. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1081. <td class="sig">
  1082. <a id="Ext.menu.ColorItem-beforedestroy"></a>
  1083. <b>beforedestroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1084. <div class="short">Fires before the component is destroyed. Return false to stop the destroy.</div>
  1085. <div class="long">
  1086. Fires before the component is destroyed. Return false to stop the destroy. <div class="mdetail-params">
  1087. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1088. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1089. </div>
  1090. </div>
  1091. </div>
  1092. </td>
  1093. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforedestroy" href="output/Ext.Component.html#event-beforedestroy">Component</a></td>
  1094. </tr>
  1095. <tr class="event-row inherited expandable">
  1096. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1097. <td class="sig">
  1098. <a id="Ext.menu.ColorItem-beforehide"></a>
  1099. <b>beforehide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1100. <div class="short">Fires before the component is hidden. Return false to stop the hide.</div>
  1101. <div class="long">
  1102. Fires before the component is hidden. Return false to stop the hide. <div class="mdetail-params">
  1103. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1104. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. </td>
  1109. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforehide" href="output/Ext.Component.html#event-beforehide">Component</a></td>
  1110. </tr>
  1111. <tr class="event-row inherited alt expandable">
  1112. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1113. <td class="sig">
  1114. <a id="Ext.menu.ColorItem-beforerender"></a>
  1115. <b>beforerender</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1116. <div class="short">Fires before the component is rendered. Return false to stop the render.</div>
  1117. <div class="long">
  1118. Fires before the component is rendered. Return false to stop the render. <div class="mdetail-params">
  1119. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1120. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1121. </div>
  1122. </div>
  1123. </div>
  1124. </td>
  1125. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforerender" href="output/Ext.Component.html#event-beforerender">Component</a></td>
  1126. </tr>
  1127. <tr class="event-row inherited expandable">
  1128. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1129. <td class="sig">
  1130. <a id="Ext.menu.ColorItem-beforeshow"></a>
  1131. <b>beforeshow</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1132. <div class="short">Fires before the component is shown. Return false to stop the show.</div>
  1133. <div class="long">
  1134. Fires before the component is shown. Return false to stop the show. <div class="mdetail-params">
  1135. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1136. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1137. </div>
  1138. </div>
  1139. </div>
  1140. </td>
  1141. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforeshow" href="output/Ext.Component.html#event-beforeshow">Component</a></td>
  1142. </tr>
  1143. <tr class="event-row inherited alt expandable">
  1144. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1145. <td class="sig">
  1146. <a id="Ext.menu.ColorItem-beforestaterestore"></a>
  1147. <b>beforestaterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1148. <div class="short">Fires before the state of the component is restored. Return false to stop the restore.</div>
  1149. <div class="long">
  1150. Fires before the state of the component is restored. Return false to stop the restore. <div class="mdetail-params">
  1151. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1152. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
  1153. </div>
  1154. </div>
  1155. </div>
  1156. </td>
  1157. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestaterestore" href="output/Ext.Component.html#event-beforestaterestore">Component</a></td>
  1158. </tr>
  1159. <tr class="event-row inherited expandable">
  1160. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1161. <td class="sig">
  1162. <a id="Ext.menu.ColorItem-beforestatesave"></a>
  1163. <b>beforestatesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1164. <div class="short">Fires before the state of the component is saved to the configured state provider. Return false to stop the save.</div>
  1165. <div class="long">
  1166. Fires before the state of the component is saved to the configured state provider. Return false to stop the save. <div class="mdetail-params">
  1167. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1168. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
  1169. </div>
  1170. </div>
  1171. </div>
  1172. </td>
  1173. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestatesave" href="output/Ext.Component.html#event-beforestatesave">Component</a></td>
  1174. </tr>
  1175. <tr class="event-row inherited alt expandable">
  1176. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1177. <td class="sig">
  1178. <a id="Ext.menu.ColorItem-click"></a>
  1179. <b>click</b> : (&nbsp;<code>Ext.menu.BaseItem this</code>, <code>Ext.EventObject e</code>&nbsp;) <div class="mdesc">
  1180. <div class="short">Fires when this item is clicked</div>
  1181. <div class="long">
  1182. Fires when this item is clicked <div class="mdetail-params">
  1183. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1184. <ul><li><code>this</code> : Ext.menu.BaseItem<div class="sub-desc"></div></li><li><code>e</code> : Ext.EventObject<div class="sub-desc"></div></li> </ul>
  1185. </div>
  1186. </div>
  1187. </div>
  1188. </td>
  1189. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#event-click" href="output/Ext.menu.BaseItem.html#event-click">BaseItem</a></td>
  1190. </tr>
  1191. <tr class="event-row inherited expandable">
  1192. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1193. <td class="sig">
  1194. <a id="Ext.menu.ColorItem-deactivate"></a>
  1195. <b>deactivate</b> : (&nbsp;<code>Ext.menu.BaseItem this</code>&nbsp;) <div class="mdesc">
  1196. <div class="short">Fires when this item is deactivated</div>
  1197. <div class="long">
  1198. Fires when this item is deactivated <div class="mdetail-params">
  1199. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1200. <ul><li><code>this</code> : Ext.menu.BaseItem<div class="sub-desc"></div></li> </ul>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. </td>
  1205. <td class="msource"><a ext:cls="Ext.menu.BaseItem" ext:member="#event-deactivate" href="output/Ext.menu.BaseItem.html#event-deactivate">BaseItem</a></td>
  1206. </tr>
  1207. <tr class="event-row inherited alt expandable">
  1208. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1209. <td class="sig">
  1210. <a id="Ext.menu.ColorItem-destroy"></a>
  1211. <b>destroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1212. <div class="short">Fires after the component is destroyed.</div>
  1213. <div class="long">
  1214. Fires after the component is destroyed. <div class="mdetail-params">
  1215. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1216. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1217. </div>
  1218. </div>
  1219. </div>
  1220. </td>
  1221. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-destroy" href="output/Ext.Component.html#event-destroy">Component</a></td>
  1222. </tr>
  1223. <tr class="event-row inherited expandable">
  1224. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1225. <td class="sig">
  1226. <a id="Ext.menu.ColorItem-disable"></a>
  1227. <b>disable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1228. <div class="short">Fires after the component is disabled.</div>
  1229. <div class="long">
  1230. Fires after the component is disabled. <div class="mdetail-params">
  1231. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1232. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1233. </div>
  1234. </div>
  1235. </div>
  1236. </td>
  1237. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-disable" href="output/Ext.Component.html#event-disable">Component</a></td>
  1238. </tr>
  1239. <tr class="event-row inherited alt expandable">
  1240. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1241. <td class="sig">
  1242. <a id="Ext.menu.ColorItem-enable"></a>
  1243. <b>enable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1244. <div class="short">Fires after the component is enabled.</div>
  1245. <div class="long">
  1246. Fires after the component is enabled. <div class="mdetail-params">
  1247. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1248. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1249. </div>
  1250. </div>
  1251. </div>
  1252. </td>
  1253. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-enable" href="output/Ext.Component.html#event-enable">Component</a></td>
  1254. </tr>
  1255. <tr class="event-row inherited expandable">
  1256. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1257. <td class="sig">
  1258. <a id="Ext.menu.ColorItem-hide"></a>
  1259. <b>hide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1260. <div class="short">Fires after the component is hidden.</div>
  1261. <div class="long">
  1262. Fires after the component is hidden. <div class="mdetail-params">
  1263. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1264. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1265. </div>
  1266. </div>
  1267. </div>
  1268. </td>
  1269. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-hide" href="output/Ext.Component.html#event-hide">Component</a></td>
  1270. </tr>
  1271. <tr class="event-row inherited alt expandable">
  1272. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1273. <td class="sig">
  1274. <a id="Ext.menu.ColorItem-render"></a>
  1275. <b>render</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1276. <div class="short">Fires after the component is rendered.</div>
  1277. <div class="long">
  1278. Fires after the component is rendered. <div class="mdetail-params">
  1279. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1280. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1281. </div>
  1282. </div>
  1283. </div>
  1284. </td>
  1285. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-render" href="output/Ext.Component.html#event-render">Component</a></td>
  1286. </tr>
  1287. <tr class="event-row inherited expandable">
  1288. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1289. <td class="sig">
  1290. <a id="Ext.menu.ColorItem-show"></a>
  1291. <b>show</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1292. <div class="short">Fires after the component is shown.</div>
  1293. <div class="long">
  1294. Fires after the component is shown. <div class="mdetail-params">
  1295. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1296. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1297. </div>
  1298. </div>
  1299. </div>
  1300. </td>
  1301. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-show" href="output/Ext.Component.html#event-show">Component</a></td>
  1302. </tr>
  1303. <tr class="event-row inherited alt expandable">
  1304. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1305. <td class="sig">
  1306. <a id="Ext.menu.ColorItem-staterestore"></a>
  1307. <b>staterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1308. <div class="short">Fires after the state of the component is restored.</div>
  1309. <div class="long">
  1310. Fires after the state of the component is restored. <div class="mdetail-params">
  1311. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1312. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
  1313. </div>
  1314. </div>
  1315. </div>
  1316. </td>
  1317. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-staterestore" href="output/Ext.Component.html#event-staterestore">Component</a></td>
  1318. </tr>
  1319. <tr class="event-row inherited expandable">
  1320. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1321. <td class="sig">
  1322. <a id="Ext.menu.ColorItem-statesave"></a>
  1323. <b>statesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1324. <div class="short">Fires after the state of the component is saved to the configured state provider.</div>
  1325. <div class="long">
  1326. Fires after the state of the component is saved to the configured state provider. <div class="mdetail-params">
  1327. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1328. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li><li><code>state</code> : Object<div class="sub-desc">The hash of state values</div></li> </ul>
  1329. </div>
  1330. </div>
  1331. </div>
  1332. </td>
  1333. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-statesave" href="output/Ext.Component.html#event-statesave">Component</a></td>
  1334. </tr>
  1335. </table>
  1336. </div>