39f4b79a043b4c7aaa81c85e59d56d4b2bb188f9.svn-base 113 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.CycleButton-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.CycleButton-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.CycleButton-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.CycleButton-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.CycleButton"><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.Button" ext:member="" href="output/Ext.Button.html">Button</a>
  13. <img src="resources/elbow-end.gif"/><a ext:cls="Ext.SplitButton" ext:member="" href="output/Ext.SplitButton.html">SplitButton</a>
  14. <img src="resources/elbow-end.gif"/>CycleButton</pre></div>
  15. <h1>Class Ext.CycleButton</h1>
  16. <table cellspacing="0">
  17. <tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
  18. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/CycleButton.js" target="_blank">CycleButton.js</a></td></tr>
  19. <tr><td class="label">Class:</td><td class="hd-info">CycleButton</td></tr>
  20. <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.SplitButton" ext:member="" href="output/Ext.SplitButton.html">SplitButton</a></td></tr>
  21. </table>
  22. <div class="description">
  23. A specialized SplitButton that contains a menu of <a ext:cls="Ext.menu.CheckItem" href="output/Ext.menu.CheckItem.html">Ext.menu.CheckItem</a> elements. The button automatically
  24. cycles through each menu item on click, raising the button's <a ext:cls="Ext.CycleButton" ext:member="change" href="output/Ext.CycleButton.html#change">change</a> event (or calling the button's
  25. <a ext:cls="Ext.CycleButton" ext:member="changeHandler" href="output/Ext.CycleButton.html#changeHandler">changeHandler</a> function, if supplied) for the active menu item. Clicking on the arrow section of the
  26. button displays the dropdown menu just like a normal SplitButton. Example usage:
  27. <pre><code>var btn = <b>new</b> Ext.CycleButton({
  28. showText: true,
  29. prependText: <em>'View as '</em>,
  30. items: [{
  31. text:<em>'text only'</em>,
  32. iconCls:<em>'view-text'</em>,
  33. checked:true
  34. },{
  35. text:<em>'HTML'</em>,
  36. iconCls:<em>'view-html'</em>
  37. }],
  38. changeHandler:<b>function</b>(btn, item){
  39. Ext.Msg.alert(<em>'Change View'</em>, item.text);
  40. }
  41. });</code></pre> </div>
  42. <div class="hr"></div>
  43. <a id="Ext.CycleButton-configs"></a>
  44. <h2>Config Options</h2>
  45. <table cellspacing="0" class="member-table">
  46. <tr>
  47. <th class="sig-header" colspan="2">Config Options</th>
  48. <th class="msource-header">Defined By</th>
  49. </tr>
  50. <tr class="config-row inherited">
  51. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  52. <td class="sig">
  53. <a id="Ext.CycleButton-allowDomMove"></a>
  54. <b>allowDomMove</b> : Boolean <div class="mdesc">
  55. Whether the component can move the Dom node when rendering (defaults to true). </div>
  56. </td>
  57. <td class="msource"><a ext:cls="Ext.Component" ext:member="#allowDomMove" href="output/Ext.Component.html#allowDomMove">Component</a></td>
  58. </tr>
  59. <tr class="config-row inherited alt expandable">
  60. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  61. <td class="sig">
  62. <a id="Ext.CycleButton-applyTo"></a>
  63. <b>applyTo</b> : Mixed <div class="mdesc">
  64. <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>
  65. <div class="long">
  66. 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>
  67. </div>
  68. </td>
  69. <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyTo" href="output/Ext.Component.html#applyTo">Component</a></td>
  70. </tr>
  71. <tr class="config-row inherited">
  72. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  73. <td class="sig">
  74. <a id="Ext.CycleButton-arrowHandler"></a>
  75. <b>arrowHandler</b> : Function <div class="mdesc">
  76. A function called when the arrow button is clicked (can be used instead of click event) </div>
  77. </td>
  78. <td class="msource"><a ext:cls="Ext.SplitButton" ext:member="#arrowHandler" href="output/Ext.SplitButton.html#arrowHandler">SplitButton</a></td>
  79. </tr>
  80. <tr class="config-row inherited alt">
  81. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  82. <td class="sig">
  83. <a id="Ext.CycleButton-arrowTooltip"></a>
  84. <b>arrowTooltip</b> : String <div class="mdesc">
  85. The title attribute of the arrow </div>
  86. </td>
  87. <td class="msource"><a ext:cls="Ext.SplitButton" ext:member="#arrowTooltip" href="output/Ext.SplitButton.html#arrowTooltip">SplitButton</a></td>
  88. </tr>
  89. <tr class="config-row inherited expandable">
  90. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  91. <td class="sig">
  92. <a id="Ext.CycleButton-autoShow"></a>
  93. <b>autoShow</b> : Boolean <div class="mdesc">
  94. <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>
  95. <div class="long">
  96. 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>
  97. </div>
  98. </td>
  99. <td class="msource"><a ext:cls="Ext.Component" ext:member="#autoShow" href="output/Ext.Component.html#autoShow">Component</a></td>
  100. </tr>
  101. <tr class="config-row alt expandable">
  102. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  103. <td class="sig">
  104. <a id="Ext.CycleButton-changeHandler"></a>
  105. <b>changeHandler</b> : Function <div class="mdesc">
  106. <div class="short">A callback function that will be invoked each time the active menu item in the button's menu has changed. If this cal...</div>
  107. <div class="long">
  108. A callback function that will be invoked each time the active menu item in the button's menu has changed. If this callback is not supplied, the SplitButton will instead fire the <a ext:cls="Ext.CycleButton" ext:member="change" href="output/Ext.CycleButton.html#change">change</a> event on active item change. The changeHandler function will be called with the following argument list: (SplitButton this, Ext.menu.CheckItem item) </div>
  109. </div>
  110. </td>
  111. <td class="msource">CycleButton</td>
  112. </tr>
  113. <tr class="config-row inherited">
  114. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  115. <td class="sig">
  116. <a id="Ext.CycleButton-clickEvent"></a>
  117. <b>clickEvent</b> : String <div class="mdesc">
  118. The type of event to map to the button's event handler (defaults to 'click') </div>
  119. </td>
  120. <td class="msource"><a ext:cls="Ext.Button" ext:member="#clickEvent" href="output/Ext.Button.html#clickEvent">Button</a></td>
  121. </tr>
  122. <tr class="config-row inherited alt expandable">
  123. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  124. <td class="sig">
  125. <a id="Ext.CycleButton-cls"></a>
  126. <b>cls</b> : String <div class="mdesc">
  127. <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>
  128. <div class="long">
  129. 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>
  130. </div>
  131. </td>
  132. <td class="msource"><a ext:cls="Ext.Component" ext:member="#cls" href="output/Ext.Component.html#cls">Component</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.CycleButton-ctCls"></a>
  138. <b>ctCls</b> : String <div class="mdesc">
  139. <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>
  140. <div class="long">
  141. 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>
  142. </div>
  143. </td>
  144. <td class="msource"><a ext:cls="Ext.Component" ext:member="#ctCls" href="output/Ext.Component.html#ctCls">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.CycleButton-disabled"></a>
  150. <b>disabled</b> : Boolean <div class="mdesc">
  151. True to start disabled (defaults to false) </div>
  152. </td>
  153. <td class="msource"><a ext:cls="Ext.Button" ext:member="#disabled" href="output/Ext.Button.html#disabled">Button</a></td>
  154. </tr>
  155. <tr class="config-row inherited">
  156. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  157. <td class="sig">
  158. <a id="Ext.CycleButton-disabledClass"></a>
  159. <b>disabledClass</b> : String <div class="mdesc">
  160. CSS class added to the component when it is disabled (defaults to "x-item-disabled"). </div>
  161. </td>
  162. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabledClass" href="output/Ext.Component.html#disabledClass">Component</a></td>
  163. </tr>
  164. <tr class="config-row inherited alt">
  165. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  166. <td class="sig">
  167. <a id="Ext.CycleButton-enableToggle"></a>
  168. <b>enableToggle</b> : Boolean <div class="mdesc">
  169. True to enable pressed/not pressed toggling (defaults to false) </div>
  170. </td>
  171. <td class="msource"><a ext:cls="Ext.Button" ext:member="#enableToggle" href="output/Ext.Button.html#enableToggle">Button</a></td>
  172. </tr>
  173. <tr class="config-row inherited">
  174. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  175. <td class="sig">
  176. <a id="Ext.CycleButton-handleMouseEvents"></a>
  177. <b>handleMouseEvents</b> : Boolean <div class="mdesc">
  178. False to disable visual cues on mouseover, mouseout and mousedown (defaults to true) </div>
  179. </td>
  180. <td class="msource"><a ext:cls="Ext.Button" ext:member="#handleMouseEvents" href="output/Ext.Button.html#handleMouseEvents">Button</a></td>
  181. </tr>
  182. <tr class="config-row inherited alt">
  183. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  184. <td class="sig">
  185. <a id="Ext.CycleButton-handler"></a>
  186. <b>handler</b> : Function <div class="mdesc">
  187. A function called when the button is clicked (can be used instead of click event) </div>
  188. </td>
  189. <td class="msource"><a ext:cls="Ext.Button" ext:member="#handler" href="output/Ext.Button.html#handler">Button</a></td>
  190. </tr>
  191. <tr class="config-row inherited">
  192. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  193. <td class="sig">
  194. <a id="Ext.CycleButton-hidden"></a>
  195. <b>hidden</b> : Boolean <div class="mdesc">
  196. True to start hidden (defaults to false) </div>
  197. </td>
  198. <td class="msource"><a ext:cls="Ext.Button" ext:member="#hidden" href="output/Ext.Button.html#hidden">Button</a></td>
  199. </tr>
  200. <tr class="config-row inherited alt expandable">
  201. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  202. <td class="sig">
  203. <a id="Ext.CycleButton-hideMode"></a>
  204. <b>hideMode</b> : String <div class="mdesc">
  205. <div class="short">How this component should hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset posi...</div>
  206. <div class="long">
  207. How this component should hidden. Supported values are "visibility" (css visibility), "offsets" (negative offset position) and "display" (css display) - defaults to "display". </div>
  208. </div>
  209. </td>
  210. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideMode" href="output/Ext.Component.html#hideMode">Component</a></td>
  211. </tr>
  212. <tr class="config-row inherited expandable">
  213. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  214. <td class="sig">
  215. <a id="Ext.CycleButton-hideParent"></a>
  216. <b>hideParent</b> : Boolean <div class="mdesc">
  217. <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>
  218. <div class="long">
  219. 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>
  220. </div>
  221. </td>
  222. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hideParent" href="output/Ext.Component.html#hideParent">Component</a></td>
  223. </tr>
  224. <tr class="config-row inherited alt expandable">
  225. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  226. <td class="sig">
  227. <a id="Ext.CycleButton-icon"></a>
  228. <b>icon</b> : String <div class="mdesc">
  229. <div class="short">The path to an image to display in the button (the image will be set as the background-image CSS property of the butt...</div>
  230. <div class="long">
  231. The path to an image to display in the button (the image will be set as the background-image CSS property of the button by default, so if you want a mixed icon/text button, set cls:"x-btn-text-icon") </div>
  232. </div>
  233. </td>
  234. <td class="msource"><a ext:cls="Ext.Button" ext:member="#icon" href="output/Ext.Button.html#icon">Button</a></td>
  235. </tr>
  236. <tr class="config-row inherited">
  237. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  238. <td class="sig">
  239. <a id="Ext.CycleButton-iconCls"></a>
  240. <b>iconCls</b> : String <div class="mdesc">
  241. A css class which sets a background image to be used as the icon for this button </div>
  242. </td>
  243. <td class="msource"><a ext:cls="Ext.Button" ext:member="#iconCls" href="output/Ext.Button.html#iconCls">Button</a></td>
  244. </tr>
  245. <tr class="config-row inherited alt">
  246. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  247. <td class="sig">
  248. <a id="Ext.CycleButton-id"></a>
  249. <b>id</b> : String <div class="mdesc">
  250. The unique id of this component (defaults to an auto-assigned id). </div>
  251. </td>
  252. <td class="msource"><a ext:cls="Ext.Component" ext:member="#id" href="output/Ext.Component.html#id">Component</a></td>
  253. </tr>
  254. <tr class="config-row expandable">
  255. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  256. <td class="sig">
  257. <a id="Ext.CycleButton-items"></a>
  258. <b>items</b> : Array <div class="mdesc">
  259. <div class="short">An array of Ext.menu.CheckItem config objects to be used when creating the button's menu items (e.g., {text:'Foo', ic...</div>
  260. <div class="long">
  261. An array of <a ext:cls="Ext.menu.CheckItem" href="output/Ext.menu.CheckItem.html">Ext.menu.CheckItem</a> <b>config</b> objects to be used when creating the button's menu items (e.g., {text:'Foo', iconCls:'foo-icon'}) </div>
  262. </div>
  263. </td>
  264. <td class="msource">CycleButton</td>
  265. </tr>
  266. <tr class="config-row inherited alt expandable">
  267. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  268. <td class="sig">
  269. <a id="Ext.CycleButton-listeners"></a>
  270. <b>listeners</b> : Object <div class="mdesc">
  271. <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
  272. <div class="long">
  273. 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>
  274. </div>
  275. </td>
  276. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
  277. </tr>
  278. <tr class="config-row inherited expandable">
  279. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  280. <td class="sig">
  281. <a id="Ext.CycleButton-menu"></a>
  282. <b>menu</b> : Mixed <div class="mdesc">
  283. <div class="short">Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to unde...</div>
  284. <div class="long">
  285. Standard menu attribute consisting of a reference to a menu object, a menu id or a menu config blob (defaults to undefined). </div>
  286. </div>
  287. </td>
  288. <td class="msource"><a ext:cls="Ext.Button" ext:member="#menu" href="output/Ext.Button.html#menu">Button</a></td>
  289. </tr>
  290. <tr class="config-row inherited alt">
  291. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  292. <td class="sig">
  293. <a id="Ext.CycleButton-menuAlign"></a>
  294. <b>menuAlign</b> : String <div class="mdesc">
  295. The position to align the menu to (see <a ext:cls="Ext.Element" ext:member="alignTo" href="output/Ext.Element.html#alignTo">Ext.Element.alignTo</a> for more details, defaults to 'tl-bl?'). </div>
  296. </td>
  297. <td class="msource"><a ext:cls="Ext.Button" ext:member="#menuAlign" href="output/Ext.Button.html#menuAlign">Button</a></td>
  298. </tr>
  299. <tr class="config-row inherited">
  300. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  301. <td class="sig">
  302. <a id="Ext.CycleButton-minWidth"></a>
  303. <b>minWidth</b> : Number <div class="mdesc">
  304. The minimum width for this button (used to give a set of buttons a common width) </div>
  305. </td>
  306. <td class="msource"><a ext:cls="Ext.Button" ext:member="#minWidth" href="output/Ext.Button.html#minWidth">Button</a></td>
  307. </tr>
  308. <tr class="config-row inherited alt expandable">
  309. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  310. <td class="sig">
  311. <a id="Ext.CycleButton-plugins"></a>
  312. <b>plugins</b> : Object/Array <div class="mdesc">
  313. <div class="short">An object or array of objects that will provide custom functionality for this component. The only requirement for a v...</div>
  314. <div class="long">
  315. 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>
  316. </div>
  317. </td>
  318. <td class="msource"><a ext:cls="Ext.Component" ext:member="#plugins" href="output/Ext.Component.html#plugins">Component</a></td>
  319. </tr>
  320. <tr class="config-row expandable">
  321. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  322. <td class="sig">
  323. <a id="Ext.CycleButton-prependText"></a>
  324. <b>prependText</b> : String <div class="mdesc">
  325. <div class="short">A static string to prepend before the active item's text when displayed as the button's text (only applies when showT...</div>
  326. <div class="long">
  327. A static string to prepend before the active item's text when displayed as the button's text (only applies when showText = true, defaults to '') </div>
  328. </div>
  329. </td>
  330. <td class="msource">CycleButton</td>
  331. </tr>
  332. <tr class="config-row inherited alt">
  333. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  334. <td class="sig">
  335. <a id="Ext.CycleButton-pressed"></a>
  336. <b>pressed</b> : Boolean <div class="mdesc">
  337. True to start pressed (only if enableToggle = true) </div>
  338. </td>
  339. <td class="msource"><a ext:cls="Ext.Button" ext:member="#pressed" href="output/Ext.Button.html#pressed">Button</a></td>
  340. </tr>
  341. <tr class="config-row inherited expandable">
  342. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  343. <td class="sig">
  344. <a id="Ext.CycleButton-renderTo"></a>
  345. <b>renderTo</b> : Mixed <div class="mdesc">
  346. <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>
  347. <div class="long">
  348. 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>
  349. </div>
  350. </td>
  351. <td class="msource"><a ext:cls="Ext.Component" ext:member="#renderTo" href="output/Ext.Component.html#renderTo">Component</a></td>
  352. </tr>
  353. <tr class="config-row inherited alt expandable">
  354. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  355. <td class="sig">
  356. <a id="Ext.CycleButton-repeat"></a>
  357. <b>repeat</b> : Boolean/Object <div class="mdesc">
  358. <div class="short">True to repeat fire the click event while the mouse is down. This can also be an Ext.util.ClickRepeater config object...</div>
  359. <div class="long">
  360. True to repeat fire the click event while the mouse is down. This can also be an <a ext:cls="Ext.util.ClickRepeater" href="output/Ext.util.ClickRepeater.html">Ext.util.ClickRepeater</a> config object (defaults to false). </div>
  361. </div>
  362. </td>
  363. <td class="msource"><a ext:cls="Ext.Button" ext:member="#repeat" href="output/Ext.Button.html#repeat">Button</a></td>
  364. </tr>
  365. <tr class="config-row inherited">
  366. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  367. <td class="sig">
  368. <a id="Ext.CycleButton-scope"></a>
  369. <b>scope</b> : Object <div class="mdesc">
  370. The scope of the handler </div>
  371. </td>
  372. <td class="msource"><a ext:cls="Ext.Button" ext:member="#scope" href="output/Ext.Button.html#scope">Button</a></td>
  373. </tr>
  374. <tr class="config-row alt">
  375. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  376. <td class="sig">
  377. <a id="Ext.CycleButton-showText"></a>
  378. <b>showText</b> : Boolean <div class="mdesc">
  379. True to display the active item's text as the button text (defaults to false) </div>
  380. </td>
  381. <td class="msource">CycleButton</td>
  382. </tr>
  383. <tr class="config-row inherited expandable">
  384. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  385. <td class="sig">
  386. <a id="Ext.CycleButton-stateEvents"></a>
  387. <b>stateEvents</b> : Array <div class="mdesc">
  388. <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>
  389. <div class="long">
  390. 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>
  391. </div>
  392. </td>
  393. <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateEvents" href="output/Ext.Component.html#stateEvents">Component</a></td>
  394. </tr>
  395. <tr class="config-row inherited alt">
  396. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  397. <td class="sig">
  398. <a id="Ext.CycleButton-stateId"></a>
  399. <b>stateId</b> : String <div class="mdesc">
  400. The unique id for this component to use for state management purposes (defaults to the component id). </div>
  401. </td>
  402. <td class="msource"><a ext:cls="Ext.Component" ext:member="#stateId" href="output/Ext.Component.html#stateId">Component</a></td>
  403. </tr>
  404. <tr class="config-row inherited expandable">
  405. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  406. <td class="sig">
  407. <a id="Ext.CycleButton-style"></a>
  408. <b>style</b> : String <div class="mdesc">
  409. <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>
  410. <div class="long">
  411. 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>
  412. </div>
  413. </td>
  414. <td class="msource"><a ext:cls="Ext.Component" ext:member="#style" href="output/Ext.Component.html#style">Component</a></td>
  415. </tr>
  416. <tr class="config-row inherited alt">
  417. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  418. <td class="sig">
  419. <a id="Ext.CycleButton-tabIndex"></a>
  420. <b>tabIndex</b> : Number <div class="mdesc">
  421. Set a DOM tabIndex for this button (defaults to undefined) </div>
  422. </td>
  423. <td class="msource"><a ext:cls="Ext.Button" ext:member="#tabIndex" href="output/Ext.Button.html#tabIndex">Button</a></td>
  424. </tr>
  425. <tr class="config-row inherited">
  426. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  427. <td class="sig">
  428. <a id="Ext.CycleButton-text"></a>
  429. <b>text</b> : String <div class="mdesc">
  430. The button text </div>
  431. </td>
  432. <td class="msource"><a ext:cls="Ext.Button" ext:member="#text" href="output/Ext.Button.html#text">Button</a></td>
  433. </tr>
  434. <tr class="config-row inherited alt">
  435. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  436. <td class="sig">
  437. <a id="Ext.CycleButton-toggleGroup"></a>
  438. <b>toggleGroup</b> : String <div class="mdesc">
  439. The group this toggle button is a member of (only 1 per group can be pressed, only applies if enableToggle = true) </div>
  440. </td>
  441. <td class="msource"><a ext:cls="Ext.Button" ext:member="#toggleGroup" href="output/Ext.Button.html#toggleGroup">Button</a></td>
  442. </tr>
  443. <tr class="config-row inherited">
  444. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  445. <td class="sig">
  446. <a id="Ext.CycleButton-tooltip"></a>
  447. <b>tooltip</b> : String/Object <div class="mdesc">
  448. The tooltip for the button - can be a string or QuickTips config object </div>
  449. </td>
  450. <td class="msource"><a ext:cls="Ext.Button" ext:member="#tooltip" href="output/Ext.Button.html#tooltip">Button</a></td>
  451. </tr>
  452. <tr class="config-row inherited alt">
  453. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  454. <td class="sig">
  455. <a id="Ext.CycleButton-tooltipType"></a>
  456. <b>tooltipType</b> : String <div class="mdesc">
  457. The type of tooltip to use. Either "qtip" (default) for QuickTips or "title" for title attribute. </div>
  458. </td>
  459. <td class="msource"><a ext:cls="Ext.Button" ext:member="#tooltipType" href="output/Ext.Button.html#tooltipType">Button</a></td>
  460. </tr>
  461. <tr class="config-row inherited">
  462. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  463. <td class="sig">
  464. <a id="Ext.CycleButton-type"></a>
  465. <b>type</b> : String <div class="mdesc">
  466. submit, reset or button - defaults to 'button' </div>
  467. </td>
  468. <td class="msource"><a ext:cls="Ext.Button" ext:member="#type" href="output/Ext.Button.html#type">Button</a></td>
  469. </tr>
  470. <tr class="config-row inherited alt expandable">
  471. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  472. <td class="sig">
  473. <a id="Ext.CycleButton-xtype"></a>
  474. <b>xtype</b> : String <div class="mdesc">
  475. <div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div>
  476. <div class="long">
  477. 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>
  478. </div>
  479. </td>
  480. <td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td>
  481. </tr>
  482. </table>
  483. <a id="Ext.CycleButton-props"></a>
  484. <h2>Public Properties</h2>
  485. <table cellspacing="0" class="member-table">
  486. <tr>
  487. <th class="sig-header" colspan="2">Property</th>
  488. <th class="msource-header">Defined By</th>
  489. </tr>
  490. <tr class="property-row inherited">
  491. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  492. <td class="sig">
  493. <a id="Ext.CycleButton-disabled"></a>
  494. <b>disabled</b> : Boolean <div class="mdesc">
  495. True if this component is disabled. Read-only. </div>
  496. </td>
  497. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td>
  498. </tr>
  499. <tr class="property-row inherited alt">
  500. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  501. <td class="sig">
  502. <a id="Ext.CycleButton-hidden"></a>
  503. <b>hidden</b> : Boolean <div class="mdesc">
  504. True if this component is hidden. Read-only. </div>
  505. </td>
  506. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td>
  507. </tr>
  508. <tr class="property-row inherited">
  509. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  510. <td class="sig">
  511. <a id="Ext.CycleButton-initialConfig"></a>
  512. <b>initialConfig</b> : Object <div class="mdesc">
  513. This Component's initial configuration specification. Read-only. </div>
  514. </td>
  515. <td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td>
  516. </tr>
  517. <tr class="property-row inherited alt expandable">
  518. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  519. <td class="sig">
  520. <a id="Ext.CycleButton-ownerCt"></a>
  521. <b>ownerCt</b> : Ext.Container <div class="mdesc">
  522. <div class="short">The component's owner Ext.Container (defaults to undefined, and is set automatically when
  523. the component is added to a...</div>
  524. <div class="long">
  525. 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
  526. the component is added to a container). Read-only. </div>
  527. </div>
  528. </td>
  529. <td class="msource"><a ext:cls="Ext.Component" ext:member="#ownerCt" href="output/Ext.Component.html#ownerCt">Component</a></td>
  530. </tr>
  531. <tr class="property-row inherited">
  532. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  533. <td class="sig">
  534. <a id="Ext.CycleButton-pressed"></a>
  535. <b>pressed</b> : Boolean <div class="mdesc">
  536. Read-only. True if this button is pressed (only if enableToggle = true) </div>
  537. </td>
  538. <td class="msource"><a ext:cls="Ext.Button" ext:member="#pressed" href="output/Ext.Button.html#pressed">Button</a></td>
  539. </tr>
  540. <tr class="property-row inherited alt">
  541. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  542. <td class="sig">
  543. <a id="Ext.CycleButton-rendered"></a>
  544. <b>rendered</b> : Boolean <div class="mdesc">
  545. True if this component has been rendered. Read-only. </div>
  546. </td>
  547. <td class="msource"><a ext:cls="Ext.Component" ext:member="#rendered" href="output/Ext.Component.html#rendered">Component</a></td>
  548. </tr>
  549. </table>
  550. <a id="Ext.CycleButton-methods"></a>
  551. <h2>Public Methods</h2>
  552. <table cellspacing="0" class="member-table">
  553. <tr>
  554. <th class="sig-header" colspan="2">Method</th>
  555. <th class="msource-header">Defined By</th>
  556. </tr>
  557. <tr class="method-row expandable">
  558. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  559. <td class="sig">
  560. <a id="Ext.CycleButton-CycleButton"></a>
  561. <b>CycleButton</b>(&nbsp;<code>Object config</code>&nbsp;) <div class="mdesc">
  562. <div class="short">Create a new split button</div>
  563. <div class="long">
  564. Create a new split button <div class="mdetail-params">
  565. <strong>Parameters:</strong>
  566. <ul><li><code>config</code> : Object<div class="sub-desc">The config object</div></li> </ul>
  567. <strong>Returns:</strong>
  568. <ul>
  569. <li><code></code></li>
  570. </ul>
  571. </div>
  572. </div>
  573. </div>
  574. </td>
  575. <td class="msource">CycleButton</td>
  576. </tr>
  577. <tr class="method-row inherited alt expandable">
  578. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  579. <td class="sig">
  580. <a id="Ext.CycleButton-addClass"></a>
  581. <b>addClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void <div class="mdesc">
  582. <div class="short">Adds a CSS class to the component's underlying element.</div>
  583. <div class="long">
  584. Adds a CSS class to the component's underlying element. <div class="mdetail-params">
  585. <strong>Parameters:</strong>
  586. <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to add</div></li> </ul>
  587. <strong>Returns:</strong>
  588. <ul>
  589. <li><code>void</code></li>
  590. </ul>
  591. </div>
  592. </div>
  593. </div>
  594. </td>
  595. <td class="msource"><a ext:cls="Ext.Component" ext:member="#addClass" href="output/Ext.Component.html#addClass">Component</a></td>
  596. </tr>
  597. <tr class="method-row inherited expandable">
  598. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  599. <td class="sig">
  600. <a id="Ext.CycleButton-addEvents"></a>
  601. <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void <div class="mdesc">
  602. <div class="short">Used to define events on this Observable</div>
  603. <div class="long">
  604. Used to define events on this Observable <div class="mdetail-params">
  605. <strong>Parameters:</strong>
  606. <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
  607. <strong>Returns:</strong>
  608. <ul>
  609. <li><code>void</code></li>
  610. </ul>
  611. </div>
  612. </div>
  613. </div>
  614. </td>
  615. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
  616. </tr>
  617. <tr class="method-row inherited alt expandable">
  618. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  619. <td class="sig">
  620. <a id="Ext.CycleButton-addListener"></a>
  621. <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">
  622. <div class="short">Appends an event handler to this component</div>
  623. <div class="long">
  624. Appends an event handler to this component <div class="mdetail-params">
  625. <strong>Parameters:</strong>
  626. <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
  627. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
  628. properties. This may contain any of the following properties:<ul>
  629. <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>
  630. <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>
  631. <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>
  632. <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
  633. by the specified number of milliseconds. If the event fires again within that time, the original
  634. handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
  635. </ul><br>
  636. <p>
  637. <b>Combining Options</b><br>
  638. Using the options argument, it is possible to combine different types of listeners:<br>
  639. <br>
  640. A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
  641. <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
  642. single: true,
  643. delay: 100,
  644. forumId: 4
  645. });</code></pre>
  646. <p>
  647. <b>Attaching multiple handlers in 1 call</b><br>
  648. The method also allows for a single argument to be passed which is a config object containing properties
  649. which specify multiple handlers.
  650. <p>
  651. <pre><code>foo.on({
  652. <em>'click'</em> : {
  653. fn: <b>this</b>.onClick,
  654. scope: <b>this</b>,
  655. delay: 100
  656. },
  657. <em>'mouseover'</em> : {
  658. fn: <b>this</b>.onMouseOver,
  659. scope: <b>this</b>
  660. },
  661. <em>'mouseout'</em> : {
  662. fn: <b>this</b>.onMouseOut,
  663. scope: <b>this</b>
  664. }
  665. });</code></pre>
  666. <p>
  667. Or a shorthand syntax:<br>
  668. <pre><code>foo.on({
  669. <em>'click'</em> : <b>this</b>.onClick,
  670. <em>'mouseover'</em> : <b>this</b>.onMouseOver,
  671. <em>'mouseout'</em> : <b>this</b>.onMouseOut,
  672. scope: <b>this</b>
  673. });</code></pre></div></li> </ul>
  674. <strong>Returns:</strong>
  675. <ul>
  676. <li><code>void</code></li>
  677. </ul>
  678. </div>
  679. </div>
  680. </div>
  681. </td>
  682. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
  683. </tr>
  684. <tr class="method-row inherited expandable">
  685. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  686. <td class="sig">
  687. <a id="Ext.CycleButton-applyToMarkup"></a>
  688. <b>applyToMarkup</b>(&nbsp;<code>String/HTMLElement el</code>&nbsp;) : void <div class="mdesc">
  689. <div class="short">Apply this component to existing markup that is valid. With this function, no call to render() is required.</div>
  690. <div class="long">
  691. Apply this component to existing markup that is valid. With this function, no call to render() is required. <div class="mdetail-params">
  692. <strong>Parameters:</strong>
  693. <ul><li><code>el</code> : String/HTMLElement<div class="sub-desc"></div></li> </ul>
  694. <strong>Returns:</strong>
  695. <ul>
  696. <li><code>void</code></li>
  697. </ul>
  698. </div>
  699. </div>
  700. </div>
  701. </td>
  702. <td class="msource"><a ext:cls="Ext.Component" ext:member="#applyToMarkup" href="output/Ext.Component.html#applyToMarkup">Component</a></td>
  703. </tr>
  704. <tr class="method-row inherited alt expandable">
  705. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  706. <td class="sig">
  707. <a id="Ext.CycleButton-cloneConfig"></a>
  708. <b>cloneConfig</b>(&nbsp;<code>Object overrides</code>&nbsp;) : Ext.Component <div class="mdesc">
  709. <div class="short">Clone the current component using the original config values passed into this instance by default.</div>
  710. <div class="long">
  711. Clone the current component using the original config values passed into this instance by default. <div class="mdetail-params">
  712. <strong>Parameters:</strong>
  713. <ul><li><code>overrides</code> : Object<div class="sub-desc">A new config containing any properties to override in the cloned version.
  714. An id property can be passed on this object, otherwise one will be generated to avoid duplicates.</div></li> </ul>
  715. <strong>Returns:</strong>
  716. <ul>
  717. <li><code>Ext.Component</code><div class="sub-desc">clone The cloned copy of this component</div></li>
  718. </ul>
  719. </div>
  720. </div>
  721. </div>
  722. </td>
  723. <td class="msource"><a ext:cls="Ext.Component" ext:member="#cloneConfig" href="output/Ext.Component.html#cloneConfig">Component</a></td>
  724. </tr>
  725. <tr class="method-row inherited expandable">
  726. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  727. <td class="sig">
  728. <a id="Ext.CycleButton-destroy"></a>
  729. <b>destroy</b>() : void <div class="mdesc">
  730. <div class="short">Destroys this component by purging any event listeners, removing the component's element from the DOM,
  731. removing the c...</div>
  732. <div class="long">
  733. Destroys this component by purging any event listeners, removing the component's element from the DOM,
  734. removing the component from its <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (if applicable) and unregistering it from
  735. <a ext:cls="Ext.ComponentMgr" href="output/Ext.ComponentMgr.html">Ext.ComponentMgr</a>. Destruction is generally handled automatically by the framework and this method
  736. should usually not need to be called directly. <div class="mdetail-params">
  737. <strong>Parameters:</strong>
  738. <ul><li>None.</li> </ul>
  739. <strong>Returns:</strong>
  740. <ul>
  741. <li><code>void</code></li>
  742. </ul>
  743. </div>
  744. </div>
  745. </div>
  746. </td>
  747. <td class="msource"><a ext:cls="Ext.Component" ext:member="#destroy" href="output/Ext.Component.html#destroy">Component</a></td>
  748. </tr>
  749. <tr class="method-row inherited alt expandable">
  750. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  751. <td class="sig">
  752. <a id="Ext.CycleButton-disable"></a>
  753. <b>disable</b>() : Ext.Component <div class="mdesc">
  754. <div class="short">Disable this component.</div>
  755. <div class="long">
  756. Disable this component. <div class="mdetail-params">
  757. <strong>Parameters:</strong>
  758. <ul><li>None.</li> </ul>
  759. <strong>Returns:</strong>
  760. <ul>
  761. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  762. </ul>
  763. </div>
  764. </div>
  765. </div>
  766. </td>
  767. <td class="msource"><a ext:cls="Ext.Component" ext:member="#disable" href="output/Ext.Component.html#disable">Component</a></td>
  768. </tr>
  769. <tr class="method-row inherited expandable">
  770. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  771. <td class="sig">
  772. <a id="Ext.CycleButton-enable"></a>
  773. <b>enable</b>() : Ext.Component <div class="mdesc">
  774. <div class="short">Enable this component.</div>
  775. <div class="long">
  776. Enable this component. <div class="mdetail-params">
  777. <strong>Parameters:</strong>
  778. <ul><li>None.</li> </ul>
  779. <strong>Returns:</strong>
  780. <ul>
  781. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  782. </ul>
  783. </div>
  784. </div>
  785. </div>
  786. </td>
  787. <td class="msource"><a ext:cls="Ext.Component" ext:member="#enable" href="output/Ext.Component.html#enable">Component</a></td>
  788. </tr>
  789. <tr class="method-row inherited alt expandable">
  790. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  791. <td class="sig">
  792. <a id="Ext.CycleButton-fireEvent"></a>
  793. <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean <div class="mdesc">
  794. <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
  795. <div class="long">
  796. Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
  797. <strong>Parameters:</strong>
  798. <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>
  799. <strong>Returns:</strong>
  800. <ul>
  801. <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
  802. </ul>
  803. </div>
  804. </div>
  805. </div>
  806. </td>
  807. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
  808. </tr>
  809. <tr class="method-row inherited expandable">
  810. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  811. <td class="sig">
  812. <a id="Ext.CycleButton-focus"></a>
  813. <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">
  814. <div class="short">Try to focus this component.</div>
  815. <div class="long">
  816. Try to focus this component. <div class="mdetail-params">
  817. <strong>Parameters:</strong>
  818. <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>
  819. <strong>Returns:</strong>
  820. <ul>
  821. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  822. </ul>
  823. </div>
  824. </div>
  825. </div>
  826. </td>
  827. <td class="msource"><a ext:cls="Ext.Component" ext:member="#focus" href="output/Ext.Component.html#focus">Component</a></td>
  828. </tr>
  829. <tr class="method-row alt expandable">
  830. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  831. <td class="sig">
  832. <a id="Ext.CycleButton-getActiveItem"></a>
  833. <b>getActiveItem</b>() : Ext.menu.CheckItem <div class="mdesc">
  834. <div class="short">Gets the currently active menu item.</div>
  835. <div class="long">
  836. Gets the currently active menu item. <div class="mdetail-params">
  837. <strong>Parameters:</strong>
  838. <ul><li>None.</li> </ul>
  839. <strong>Returns:</strong>
  840. <ul>
  841. <li><code>Ext.menu.CheckItem</code><div class="sub-desc">The active item</div></li>
  842. </ul>
  843. </div>
  844. </div>
  845. </div>
  846. </td>
  847. <td class="msource">CycleButton</td>
  848. </tr>
  849. <tr class="method-row inherited expandable">
  850. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  851. <td class="sig">
  852. <a id="Ext.CycleButton-getEl"></a>
  853. <b>getEl</b>() : Ext.Element <div class="mdesc">
  854. <div class="short">Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>.</div>
  855. <div class="long">
  856. Returns the underlying <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a>. <div class="mdetail-params">
  857. <strong>Parameters:</strong>
  858. <ul><li>None.</li> </ul>
  859. <strong>Returns:</strong>
  860. <ul>
  861. <li><code>Ext.Element</code><div class="sub-desc">The element</div></li>
  862. </ul>
  863. </div>
  864. </div>
  865. </div>
  866. </td>
  867. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getEl" href="output/Ext.Component.html#getEl">Component</a></td>
  868. </tr>
  869. <tr class="method-row inherited alt expandable">
  870. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  871. <td class="sig">
  872. <a id="Ext.CycleButton-getId"></a>
  873. <b>getId</b>() : String <div class="mdesc">
  874. <div class="short">Returns the id of this component.</div>
  875. <div class="long">
  876. Returns the id of this component. <div class="mdetail-params">
  877. <strong>Parameters:</strong>
  878. <ul><li>None.</li> </ul>
  879. <strong>Returns:</strong>
  880. <ul>
  881. <li><code>String</code></li>
  882. </ul>
  883. </div>
  884. </div>
  885. </div>
  886. </td>
  887. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getId" href="output/Ext.Component.html#getId">Component</a></td>
  888. </tr>
  889. <tr class="method-row inherited expandable">
  890. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  891. <td class="sig">
  892. <a id="Ext.CycleButton-getItemId"></a>
  893. <b>getItemId</b>() : String <div class="mdesc">
  894. <div class="short">Returns the item id of this component.</div>
  895. <div class="long">
  896. Returns the item id of this component. <div class="mdetail-params">
  897. <strong>Parameters:</strong>
  898. <ul><li>None.</li> </ul>
  899. <strong>Returns:</strong>
  900. <ul>
  901. <li><code>String</code></li>
  902. </ul>
  903. </div>
  904. </div>
  905. </div>
  906. </td>
  907. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getItemId" href="output/Ext.Component.html#getItemId">Component</a></td>
  908. </tr>
  909. <tr class="method-row inherited alt expandable">
  910. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  911. <td class="sig">
  912. <a id="Ext.CycleButton-getText"></a>
  913. <b>getText</b>() : String <div class="mdesc">
  914. <div class="short">Gets the text for this button</div>
  915. <div class="long">
  916. Gets the text for this button <div class="mdetail-params">
  917. <strong>Parameters:</strong>
  918. <ul><li>None.</li> </ul>
  919. <strong>Returns:</strong>
  920. <ul>
  921. <li><code>String</code><div class="sub-desc">The button text</div></li>
  922. </ul>
  923. </div>
  924. </div>
  925. </div>
  926. </td>
  927. <td class="msource"><a ext:cls="Ext.Button" ext:member="#getText" href="output/Ext.Button.html#getText">Button</a></td>
  928. </tr>
  929. <tr class="method-row inherited expandable">
  930. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  931. <td class="sig">
  932. <a id="Ext.CycleButton-getXType"></a>
  933. <b>getXType</b>() : String <div class="mdesc">
  934. <div class="short">Gets the xtype for this component as registered with Ext.ComponentMgr. For a list of all
  935. available xtypes, see the Ex...</div>
  936. <div class="long">
  937. 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
  938. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  939. <pre><code>var t = <b>new</b> Ext.form.TextField();
  940. alert(t.getXType()); // alerts <em>'textfield'</em></code></pre> <div class="mdetail-params">
  941. <strong>Parameters:</strong>
  942. <ul><li>None.</li> </ul>
  943. <strong>Returns:</strong>
  944. <ul>
  945. <li><code>String</code><div class="sub-desc">The xtype</div></li>
  946. </ul>
  947. </div>
  948. </div>
  949. </div>
  950. </td>
  951. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXType" href="output/Ext.Component.html#getXType">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.CycleButton-getXTypes"></a>
  957. <b>getXTypes</b>() : String <div class="mdesc">
  958. <div class="short">Returns this component's xtype hierarchy as a slash-delimited string. For a list of all
  959. available xtypes, see the Ext...</div>
  960. <div class="long">
  961. Returns this component's xtype hierarchy as a slash-delimited string. For a list of all
  962. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  963. <pre><code>
  964. var t = new Ext.form.TextField();
  965. alert(t.getXTypes()); // alerts 'component/box/field/textfield'</pre></code> <div class="mdetail-params">
  966. <strong>Parameters:</strong>
  967. <ul><li>None.</li> </ul>
  968. <strong>Returns:</strong>
  969. <ul>
  970. <li><code>String</code><div class="sub-desc">The xtype hierarchy string</div></li>
  971. </ul>
  972. </div>
  973. </div>
  974. </div>
  975. </td>
  976. <td class="msource"><a ext:cls="Ext.Component" ext:member="#getXTypes" href="output/Ext.Component.html#getXTypes">Component</a></td>
  977. </tr>
  978. <tr class="method-row inherited expandable">
  979. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  980. <td class="sig">
  981. <a id="Ext.CycleButton-hasListener"></a>
  982. <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean <div class="mdesc">
  983. <div class="short">Checks to see if this object has any listeners for a specified event</div>
  984. <div class="long">
  985. Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
  986. <strong>Parameters:</strong>
  987. <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
  988. <strong>Returns:</strong>
  989. <ul>
  990. <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
  991. </ul>
  992. </div>
  993. </div>
  994. </div>
  995. </td>
  996. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
  997. </tr>
  998. <tr class="method-row inherited alt expandable">
  999. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1000. <td class="sig">
  1001. <a id="Ext.CycleButton-hasVisibleMenu"></a>
  1002. <b>hasVisibleMenu</b>() : Boolean <div class="mdesc">
  1003. <div class="short">Returns true if the button has a menu and it is visible</div>
  1004. <div class="long">
  1005. Returns true if the button has a menu and it is visible <div class="mdetail-params">
  1006. <strong>Parameters:</strong>
  1007. <ul><li>None.</li> </ul>
  1008. <strong>Returns:</strong>
  1009. <ul>
  1010. <li><code>Boolean</code></li>
  1011. </ul>
  1012. </div>
  1013. </div>
  1014. </div>
  1015. </td>
  1016. <td class="msource"><a ext:cls="Ext.Button" ext:member="#hasVisibleMenu" href="output/Ext.Button.html#hasVisibleMenu">Button</a></td>
  1017. </tr>
  1018. <tr class="method-row inherited expandable">
  1019. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1020. <td class="sig">
  1021. <a id="Ext.CycleButton-hide"></a>
  1022. <b>hide</b>() : Ext.Component <div class="mdesc">
  1023. <div class="short">Hide this component.</div>
  1024. <div class="long">
  1025. Hide this component. <div class="mdetail-params">
  1026. <strong>Parameters:</strong>
  1027. <ul><li>None.</li> </ul>
  1028. <strong>Returns:</strong>
  1029. <ul>
  1030. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  1031. </ul>
  1032. </div>
  1033. </div>
  1034. </div>
  1035. </td>
  1036. <td class="msource"><a ext:cls="Ext.Component" ext:member="#hide" href="output/Ext.Component.html#hide">Component</a></td>
  1037. </tr>
  1038. <tr class="method-row inherited alt expandable">
  1039. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1040. <td class="sig">
  1041. <a id="Ext.CycleButton-hideMenu"></a>
  1042. <b>hideMenu</b>() : void <div class="mdesc">
  1043. <div class="short">Hide this button's menu (if it has one)</div>
  1044. <div class="long">
  1045. Hide this button's menu (if it has one) <div class="mdetail-params">
  1046. <strong>Parameters:</strong>
  1047. <ul><li>None.</li> </ul>
  1048. <strong>Returns:</strong>
  1049. <ul>
  1050. <li><code>void</code></li>
  1051. </ul>
  1052. </div>
  1053. </div>
  1054. </div>
  1055. </td>
  1056. <td class="msource"><a ext:cls="Ext.Button" ext:member="#hideMenu" href="output/Ext.Button.html#hideMenu">Button</a></td>
  1057. </tr>
  1058. <tr class="method-row inherited expandable">
  1059. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1060. <td class="sig">
  1061. <a id="Ext.CycleButton-initComponent"></a>
  1062. <b>initComponent</b>() : void <div class="mdesc">
  1063. <div class="short"></div>
  1064. <div class="long">
  1065. <div class="mdetail-params">
  1066. <strong>Parameters:</strong>
  1067. <ul><li>None.</li> </ul>
  1068. <strong>Returns:</strong>
  1069. <ul>
  1070. <li><code>void</code></li>
  1071. </ul>
  1072. </div>
  1073. </div>
  1074. </div>
  1075. </td>
  1076. <td class="msource"><a ext:cls="Ext.Button" ext:member="#initComponent" href="output/Ext.Button.html#initComponent">Button</a></td>
  1077. </tr>
  1078. <tr class="method-row inherited alt expandable">
  1079. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1080. <td class="sig">
  1081. <a id="Ext.CycleButton-isVisible"></a>
  1082. <b>isVisible</b>() : void <div class="mdesc">
  1083. <div class="short">Returns true if this component is visible.</div>
  1084. <div class="long">
  1085. Returns true if this component is visible. <div class="mdetail-params">
  1086. <strong>Parameters:</strong>
  1087. <ul><li>None.</li> </ul>
  1088. <strong>Returns:</strong>
  1089. <ul>
  1090. <li><code>void</code></li>
  1091. </ul>
  1092. </div>
  1093. </div>
  1094. </div>
  1095. </td>
  1096. <td class="msource"><a ext:cls="Ext.Component" ext:member="#isVisible" href="output/Ext.Component.html#isVisible">Component</a></td>
  1097. </tr>
  1098. <tr class="method-row inherited expandable">
  1099. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1100. <td class="sig">
  1101. <a id="Ext.CycleButton-isXType"></a>
  1102. <b>isXType</b>(&nbsp;<code>String xtype</code>, <span class="optional" title="Optional">[<code>Boolean shallow</code>]</span>&nbsp;) : void <div class="mdesc">
  1103. <div class="short">Tests whether or not this component is of a specific xtype. This can test whether this component is descended
  1104. from th...</div>
  1105. <div class="long">
  1106. Tests whether or not this component is of a specific xtype. This can test whether this component is descended
  1107. from the xtype (default) or whether it is directly of the xtype specified (shallow = true). For a list of all
  1108. available xtypes, see the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> header. Example usage:
  1109. <pre><code>var t = <b>new</b> Ext.form.TextField();
  1110. <b>var</b> isText = t.isXType(<em>'textfield'</em>); <i>// true</i>
  1111. <b>var</b> isBoxSubclass = t.isXType(<em>'box'</em>); <i>// true, descended from BoxComponent</i>
  1112. <b>var</b> isBoxInstance = t.isXType(<em>'box'</em>, true); // false, not a direct BoxComponent instance</code></pre> <div class="mdetail-params">
  1113. <strong>Parameters:</strong>
  1114. <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
  1115. the default), or true to check whether this component is directly of the specified xtype.</div></li> </ul>
  1116. <strong>Returns:</strong>
  1117. <ul>
  1118. <li><code>void</code></li>
  1119. </ul>
  1120. </div>
  1121. </div>
  1122. </div>
  1123. </td>
  1124. <td class="msource"><a ext:cls="Ext.Component" ext:member="#isXType" href="output/Ext.Component.html#isXType">Component</a></td>
  1125. </tr>
  1126. <tr class="method-row inherited alt expandable">
  1127. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1128. <td class="sig">
  1129. <a id="Ext.CycleButton-on"></a>
  1130. <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">
  1131. <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
  1132. <div class="long">
  1133. Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
  1134. <strong>Parameters:</strong>
  1135. <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
  1136. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  1137. <strong>Returns:</strong>
  1138. <ul>
  1139. <li><code>void</code></li>
  1140. </ul>
  1141. </div>
  1142. </div>
  1143. </div>
  1144. </td>
  1145. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
  1146. </tr>
  1147. <tr class="method-row inherited expandable">
  1148. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1149. <td class="sig">
  1150. <a id="Ext.CycleButton-purgeListeners"></a>
  1151. <b>purgeListeners</b>() : void <div class="mdesc">
  1152. <div class="short">Removes all listeners for this object</div>
  1153. <div class="long">
  1154. Removes all listeners for this object <div class="mdetail-params">
  1155. <strong>Parameters:</strong>
  1156. <ul><li>None.</li> </ul>
  1157. <strong>Returns:</strong>
  1158. <ul>
  1159. <li><code>void</code></li>
  1160. </ul>
  1161. </div>
  1162. </div>
  1163. </div>
  1164. </td>
  1165. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
  1166. </tr>
  1167. <tr class="method-row inherited alt expandable">
  1168. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1169. <td class="sig">
  1170. <a id="Ext.CycleButton-removeClass"></a>
  1171. <b>removeClass</b>(&nbsp;<code>string cls</code>&nbsp;) : void <div class="mdesc">
  1172. <div class="short">Removes a CSS class from the component's underlying element.</div>
  1173. <div class="long">
  1174. Removes a CSS class from the component's underlying element. <div class="mdetail-params">
  1175. <strong>Parameters:</strong>
  1176. <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to remove</div></li> </ul>
  1177. <strong>Returns:</strong>
  1178. <ul>
  1179. <li><code>void</code></li>
  1180. </ul>
  1181. </div>
  1182. </div>
  1183. </div>
  1184. </td>
  1185. <td class="msource"><a ext:cls="Ext.Component" ext:member="#removeClass" href="output/Ext.Component.html#removeClass">Component</a></td>
  1186. </tr>
  1187. <tr class="method-row inherited expandable">
  1188. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1189. <td class="sig">
  1190. <a id="Ext.CycleButton-removeListener"></a>
  1191. <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">
  1192. <div class="short">Removes a listener</div>
  1193. <div class="long">
  1194. Removes a listener <div class="mdetail-params">
  1195. <strong>Parameters:</strong>
  1196. <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>
  1197. <strong>Returns:</strong>
  1198. <ul>
  1199. <li><code>void</code></li>
  1200. </ul>
  1201. </div>
  1202. </div>
  1203. </div>
  1204. </td>
  1205. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
  1206. </tr>
  1207. <tr class="method-row inherited alt expandable">
  1208. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1209. <td class="sig">
  1210. <a id="Ext.CycleButton-render"></a>
  1211. <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">
  1212. <div class="short">If this is a lazy rendering component, render it to its container element.</div>
  1213. <div class="long">
  1214. If this is a lazy rendering component, render it to its container element. <div class="mdetail-params">
  1215. <strong>Parameters:</strong>
  1216. <ul><li><code>container</code> : Mixed<div class="sub-desc">(optional) The element this component should be rendered into. If it is being
  1217. 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>
  1218. which this component will be inserted (defaults to appending to the end of the container)</div></li> </ul>
  1219. <strong>Returns:</strong>
  1220. <ul>
  1221. <li><code>void</code></li>
  1222. </ul>
  1223. </div>
  1224. </div>
  1225. </div>
  1226. </td>
  1227. <td class="msource"><a ext:cls="Ext.Component" ext:member="#render" href="output/Ext.Component.html#render">Component</a></td>
  1228. </tr>
  1229. <tr class="method-row inherited expandable">
  1230. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1231. <td class="sig">
  1232. <a id="Ext.CycleButton-resumeEvents"></a>
  1233. <b>resumeEvents</b>() : void <div class="mdesc">
  1234. <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>
  1235. <div class="long">
  1236. 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">
  1237. <strong>Parameters:</strong>
  1238. <ul><li>None.</li> </ul>
  1239. <strong>Returns:</strong>
  1240. <ul>
  1241. <li><code>void</code></li>
  1242. </ul>
  1243. </div>
  1244. </div>
  1245. </div>
  1246. </td>
  1247. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
  1248. </tr>
  1249. <tr class="method-row alt expandable">
  1250. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1251. <td class="sig">
  1252. <a id="Ext.CycleButton-setActiveItem"></a>
  1253. <b>setActiveItem</b>(&nbsp;<code>Ext.menu.CheckItem item</code>, <code>Boolean suppressEvent</code>&nbsp;) : void <div class="mdesc">
  1254. <div class="short">Sets the button's active menu item.</div>
  1255. <div class="long">
  1256. Sets the button's active menu item. <div class="mdetail-params">
  1257. <strong>Parameters:</strong>
  1258. <ul><li><code>item</code> : Ext.menu.CheckItem<div class="sub-desc">The item to activate</div></li><li><code>suppressEvent</code> : Boolean<div class="sub-desc">True to prevent the button's change event from firing (defaults to false)</div></li> </ul>
  1259. <strong>Returns:</strong>
  1260. <ul>
  1261. <li><code>void</code></li>
  1262. </ul>
  1263. </div>
  1264. </div>
  1265. </div>
  1266. </td>
  1267. <td class="msource">CycleButton</td>
  1268. </tr>
  1269. <tr class="method-row inherited expandable">
  1270. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1271. <td class="sig">
  1272. <a id="Ext.CycleButton-setArrowHandler"></a>
  1273. <b>setArrowHandler</b>(&nbsp;<code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  1274. <div class="short">Sets this button's arrow click handler</div>
  1275. <div class="long">
  1276. Sets this button's arrow click handler <div class="mdetail-params">
  1277. <strong>Parameters:</strong>
  1278. <ul><li><code>handler</code> : Function<div class="sub-desc">The function to call when the arrow is clicked</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) Scope for the function passed above</div></li> </ul>
  1279. <strong>Returns:</strong>
  1280. <ul>
  1281. <li><code>void</code></li>
  1282. </ul>
  1283. </div>
  1284. </div>
  1285. </div>
  1286. </td>
  1287. <td class="msource"><a ext:cls="Ext.SplitButton" ext:member="#setArrowHandler" href="output/Ext.SplitButton.html#setArrowHandler">SplitButton</a></td>
  1288. </tr>
  1289. <tr class="method-row inherited alt expandable">
  1290. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1291. <td class="sig">
  1292. <a id="Ext.CycleButton-setDisabled"></a>
  1293. <b>setDisabled</b>(&nbsp;<code>Boolean disabled</code>&nbsp;) : void <div class="mdesc">
  1294. <div class="short">Convenience function for setting disabled/enabled by boolean.</div>
  1295. <div class="long">
  1296. Convenience function for setting disabled/enabled by boolean. <div class="mdetail-params">
  1297. <strong>Parameters:</strong>
  1298. <ul><li><code>disabled</code> : Boolean<div class="sub-desc"></div></li> </ul>
  1299. <strong>Returns:</strong>
  1300. <ul>
  1301. <li><code>void</code></li>
  1302. </ul>
  1303. </div>
  1304. </div>
  1305. </div>
  1306. </td>
  1307. <td class="msource"><a ext:cls="Ext.Component" ext:member="#setDisabled" href="output/Ext.Component.html#setDisabled">Component</a></td>
  1308. </tr>
  1309. <tr class="method-row inherited expandable">
  1310. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1311. <td class="sig">
  1312. <a id="Ext.CycleButton-setHandler"></a>
  1313. <b>setHandler</b>(&nbsp;<code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  1314. <div class="short">Assigns this button's click handler</div>
  1315. <div class="long">
  1316. Assigns this button's click handler <div class="mdetail-params">
  1317. <strong>Parameters:</strong>
  1318. <ul><li><code>handler</code> : Function<div class="sub-desc">The function to call when the button is clicked</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) Scope for the function passed in</div></li> </ul>
  1319. <strong>Returns:</strong>
  1320. <ul>
  1321. <li><code>void</code></li>
  1322. </ul>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. </td>
  1327. <td class="msource"><a ext:cls="Ext.Button" ext:member="#setHandler" href="output/Ext.Button.html#setHandler">Button</a></td>
  1328. </tr>
  1329. <tr class="method-row inherited alt expandable">
  1330. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1331. <td class="sig">
  1332. <a id="Ext.CycleButton-setIconClass"></a>
  1333. <b>setIconClass</b>(&nbsp;<code>String cls</code>&nbsp;) : void <div class="mdesc">
  1334. <div class="short">Sets the CSS class that provides a background image to use as the button's icon. This method also changes
  1335. the value ...</div>
  1336. <div class="long">
  1337. Sets the CSS class that provides a background image to use as the button's icon. This method also changes
  1338. the value of the <a ext:cls="iconCls" href="output/iconCls.html">iconCls</a> config internally. <div class="mdetail-params">
  1339. <strong>Parameters:</strong>
  1340. <ul><li><code>cls</code> : String<div class="sub-desc">The CSS class providing the icon image</div></li> </ul>
  1341. <strong>Returns:</strong>
  1342. <ul>
  1343. <li><code>void</code></li>
  1344. </ul>
  1345. </div>
  1346. </div>
  1347. </div>
  1348. </td>
  1349. <td class="msource"><a ext:cls="Ext.Button" ext:member="#setIconClass" href="output/Ext.Button.html#setIconClass">Button</a></td>
  1350. </tr>
  1351. <tr class="method-row inherited expandable">
  1352. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1353. <td class="sig">
  1354. <a id="Ext.CycleButton-setText"></a>
  1355. <b>setText</b>(&nbsp;<code>String text</code>&nbsp;) : void <div class="mdesc">
  1356. <div class="short">Sets this button's text</div>
  1357. <div class="long">
  1358. Sets this button's text <div class="mdetail-params">
  1359. <strong>Parameters:</strong>
  1360. <ul><li><code>text</code> : String<div class="sub-desc">The button text</div></li> </ul>
  1361. <strong>Returns:</strong>
  1362. <ul>
  1363. <li><code>void</code></li>
  1364. </ul>
  1365. </div>
  1366. </div>
  1367. </div>
  1368. </td>
  1369. <td class="msource"><a ext:cls="Ext.Button" ext:member="#setText" href="output/Ext.Button.html#setText">Button</a></td>
  1370. </tr>
  1371. <tr class="method-row inherited alt expandable">
  1372. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1373. <td class="sig">
  1374. <a id="Ext.CycleButton-setVisible"></a>
  1375. <b>setVisible</b>(&nbsp;<code>Boolean visible</code>&nbsp;) : Ext.Component <div class="mdesc">
  1376. <div class="short">Convenience function to hide or show this component by boolean.</div>
  1377. <div class="long">
  1378. Convenience function to hide or show this component by boolean. <div class="mdetail-params">
  1379. <strong>Parameters:</strong>
  1380. <ul><li><code>visible</code> : Boolean<div class="sub-desc">True to show, false to hide</div></li> </ul>
  1381. <strong>Returns:</strong>
  1382. <ul>
  1383. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  1384. </ul>
  1385. </div>
  1386. </div>
  1387. </div>
  1388. </td>
  1389. <td class="msource"><a ext:cls="Ext.Component" ext:member="#setVisible" href="output/Ext.Component.html#setVisible">Component</a></td>
  1390. </tr>
  1391. <tr class="method-row inherited expandable">
  1392. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1393. <td class="sig">
  1394. <a id="Ext.CycleButton-show"></a>
  1395. <b>show</b>() : Ext.Component <div class="mdesc">
  1396. <div class="short">Show this component.</div>
  1397. <div class="long">
  1398. Show this component. <div class="mdetail-params">
  1399. <strong>Parameters:</strong>
  1400. <ul><li>None.</li> </ul>
  1401. <strong>Returns:</strong>
  1402. <ul>
  1403. <li><code>Ext.Component</code><div class="sub-desc">this</div></li>
  1404. </ul>
  1405. </div>
  1406. </div>
  1407. </div>
  1408. </td>
  1409. <td class="msource"><a ext:cls="Ext.Component" ext:member="#show" href="output/Ext.Component.html#show">Component</a></td>
  1410. </tr>
  1411. <tr class="method-row inherited alt expandable">
  1412. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1413. <td class="sig">
  1414. <a id="Ext.CycleButton-showMenu"></a>
  1415. <b>showMenu</b>() : void <div class="mdesc">
  1416. <div class="short">Show this button's menu (if it has one)</div>
  1417. <div class="long">
  1418. Show this button's menu (if it has one) <div class="mdetail-params">
  1419. <strong>Parameters:</strong>
  1420. <ul><li>None.</li> </ul>
  1421. <strong>Returns:</strong>
  1422. <ul>
  1423. <li><code>void</code></li>
  1424. </ul>
  1425. </div>
  1426. </div>
  1427. </div>
  1428. </td>
  1429. <td class="msource"><a ext:cls="Ext.Button" ext:member="#showMenu" href="output/Ext.Button.html#showMenu">Button</a></td>
  1430. </tr>
  1431. <tr class="method-row inherited expandable">
  1432. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1433. <td class="sig">
  1434. <a id="Ext.CycleButton-suspendEvents"></a>
  1435. <b>suspendEvents</b>() : void <div class="mdesc">
  1436. <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>
  1437. <div class="long">
  1438. 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">
  1439. <strong>Parameters:</strong>
  1440. <ul><li>None.</li> </ul>
  1441. <strong>Returns:</strong>
  1442. <ul>
  1443. <li><code>void</code></li>
  1444. </ul>
  1445. </div>
  1446. </div>
  1447. </div>
  1448. </td>
  1449. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
  1450. </tr>
  1451. <tr class="method-row inherited alt expandable">
  1452. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1453. <td class="sig">
  1454. <a id="Ext.CycleButton-toggle"></a>
  1455. <b>toggle</b>(&nbsp;<span class="optional" title="Optional">[<code>Boolean state</code>]</span>&nbsp;) : void <div class="mdesc">
  1456. <div class="short">If a state it passed, it becomes the pressed state otherwise the current state is toggled.</div>
  1457. <div class="long">
  1458. If a state it passed, it becomes the pressed state otherwise the current state is toggled. <div class="mdetail-params">
  1459. <strong>Parameters:</strong>
  1460. <ul><li><code>state</code> : Boolean<div class="sub-desc">(optional) Force a particular state</div></li> </ul>
  1461. <strong>Returns:</strong>
  1462. <ul>
  1463. <li><code>void</code></li>
  1464. </ul>
  1465. </div>
  1466. </div>
  1467. </div>
  1468. </td>
  1469. <td class="msource"><a ext:cls="Ext.Button" ext:member="#toggle" href="output/Ext.Button.html#toggle">Button</a></td>
  1470. </tr>
  1471. <tr class="method-row expandable">
  1472. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1473. <td class="sig">
  1474. <a id="Ext.CycleButton-toggleSelected"></a>
  1475. <b>toggleSelected</b>() : void <div class="mdesc">
  1476. <div class="short">This is normally called internally on button click, but can be called externally to advance the button's
  1477. active item ...</div>
  1478. <div class="long">
  1479. This is normally called internally on button click, but can be called externally to advance the button's
  1480. active item programmatically to the next one in the menu. If the current item is the last one in the menu
  1481. the active item will be set to the first item in the menu. <div class="mdetail-params">
  1482. <strong>Parameters:</strong>
  1483. <ul><li>None.</li> </ul>
  1484. <strong>Returns:</strong>
  1485. <ul>
  1486. <li><code>void</code></li>
  1487. </ul>
  1488. </div>
  1489. </div>
  1490. </div>
  1491. </td>
  1492. <td class="msource">CycleButton</td>
  1493. </tr>
  1494. <tr class="method-row inherited alt expandable">
  1495. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1496. <td class="sig">
  1497. <a id="Ext.CycleButton-un"></a>
  1498. <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">
  1499. <div class="short">Removes a listener (shorthand for removeListener)</div>
  1500. <div class="long">
  1501. Removes a listener (shorthand for removeListener) <div class="mdetail-params">
  1502. <strong>Parameters:</strong>
  1503. <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>
  1504. <strong>Returns:</strong>
  1505. <ul>
  1506. <li><code>void</code></li>
  1507. </ul>
  1508. </div>
  1509. </div>
  1510. </div>
  1511. </td>
  1512. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
  1513. </tr>
  1514. </table>
  1515. <a id="Ext.CycleButton-events"></a>
  1516. <h2>Public Events</h2>
  1517. <table cellspacing="0" class="member-table">
  1518. <tr>
  1519. <th class="sig-header" colspan="2">Event</th>
  1520. <th class="msource-header">Defined By</th>
  1521. </tr>
  1522. <tr class="event-row inherited expandable">
  1523. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1524. <td class="sig">
  1525. <a id="Ext.CycleButton-arrowclick"></a>
  1526. <b>arrowclick</b> : (&nbsp;<code>MenuButton this</code>, <code>EventObject e</code>&nbsp;) <div class="mdesc">
  1527. <div class="short">Fires when this button's arrow is clicked</div>
  1528. <div class="long">
  1529. Fires when this button's arrow is clicked <div class="mdetail-params">
  1530. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1531. <ul><li><code>this</code> : MenuButton<div class="sub-desc"></div></li><li><code>e</code> : EventObject<div class="sub-desc">The click event</div></li> </ul>
  1532. </div>
  1533. </div>
  1534. </div>
  1535. </td>
  1536. <td class="msource"><a ext:cls="Ext.SplitButton" ext:member="#event-arrowclick" href="output/Ext.SplitButton.html#event-arrowclick">SplitButton</a></td>
  1537. </tr>
  1538. <tr class="event-row inherited alt expandable">
  1539. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1540. <td class="sig">
  1541. <a id="Ext.CycleButton-beforedestroy"></a>
  1542. <b>beforedestroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1543. <div class="short">Fires before the component is destroyed. Return false to stop the destroy.</div>
  1544. <div class="long">
  1545. Fires before the component is destroyed. Return false to stop the destroy. <div class="mdetail-params">
  1546. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1547. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1548. </div>
  1549. </div>
  1550. </div>
  1551. </td>
  1552. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforedestroy" href="output/Ext.Component.html#event-beforedestroy">Component</a></td>
  1553. </tr>
  1554. <tr class="event-row inherited expandable">
  1555. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1556. <td class="sig">
  1557. <a id="Ext.CycleButton-beforehide"></a>
  1558. <b>beforehide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1559. <div class="short">Fires before the component is hidden. Return false to stop the hide.</div>
  1560. <div class="long">
  1561. Fires before the component is hidden. Return false to stop the hide. <div class="mdetail-params">
  1562. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1563. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1564. </div>
  1565. </div>
  1566. </div>
  1567. </td>
  1568. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforehide" href="output/Ext.Component.html#event-beforehide">Component</a></td>
  1569. </tr>
  1570. <tr class="event-row inherited alt expandable">
  1571. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1572. <td class="sig">
  1573. <a id="Ext.CycleButton-beforerender"></a>
  1574. <b>beforerender</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1575. <div class="short">Fires before the component is rendered. Return false to stop the render.</div>
  1576. <div class="long">
  1577. Fires before the component is rendered. Return false to stop the render. <div class="mdetail-params">
  1578. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1579. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1580. </div>
  1581. </div>
  1582. </div>
  1583. </td>
  1584. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforerender" href="output/Ext.Component.html#event-beforerender">Component</a></td>
  1585. </tr>
  1586. <tr class="event-row inherited expandable">
  1587. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1588. <td class="sig">
  1589. <a id="Ext.CycleButton-beforeshow"></a>
  1590. <b>beforeshow</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1591. <div class="short">Fires before the component is shown. Return false to stop the show.</div>
  1592. <div class="long">
  1593. Fires before the component is shown. Return false to stop the show. <div class="mdetail-params">
  1594. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1595. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1596. </div>
  1597. </div>
  1598. </div>
  1599. </td>
  1600. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforeshow" href="output/Ext.Component.html#event-beforeshow">Component</a></td>
  1601. </tr>
  1602. <tr class="event-row inherited alt expandable">
  1603. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1604. <td class="sig">
  1605. <a id="Ext.CycleButton-beforestaterestore"></a>
  1606. <b>beforestaterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1607. <div class="short">Fires before the state of the component is restored. Return false to stop the restore.</div>
  1608. <div class="long">
  1609. Fires before the state of the component is restored. Return false to stop the restore. <div class="mdetail-params">
  1610. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1611. <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>
  1612. </div>
  1613. </div>
  1614. </div>
  1615. </td>
  1616. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestaterestore" href="output/Ext.Component.html#event-beforestaterestore">Component</a></td>
  1617. </tr>
  1618. <tr class="event-row inherited expandable">
  1619. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1620. <td class="sig">
  1621. <a id="Ext.CycleButton-beforestatesave"></a>
  1622. <b>beforestatesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1623. <div class="short">Fires before the state of the component is saved to the configured state provider. Return false to stop the save.</div>
  1624. <div class="long">
  1625. Fires before the state of the component is saved to the configured state provider. Return false to stop the save. <div class="mdetail-params">
  1626. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1627. <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>
  1628. </div>
  1629. </div>
  1630. </div>
  1631. </td>
  1632. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-beforestatesave" href="output/Ext.Component.html#event-beforestatesave">Component</a></td>
  1633. </tr>
  1634. <tr class="event-row alt expandable">
  1635. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1636. <td class="sig">
  1637. <a id="Ext.CycleButton-change"></a>
  1638. <b>change</b> : (&nbsp;<code>Ext.CycleButton this</code>, <code>Ext.menu.CheckItem item</code>&nbsp;) <div class="mdesc">
  1639. <div class="short">Fires after the button's active menu item has changed. Note that if a changeHandler function
  1640. is set on this CycleBut...</div>
  1641. <div class="long">
  1642. Fires after the button's active menu item has changed. Note that if a <a ext:cls="Ext.CycleButton" ext:member="changeHandler" href="output/Ext.CycleButton.html#changeHandler">changeHandler</a> function
  1643. is set on this CycleButton, it will be called instead on active item change and this change event will
  1644. not be fired. <div class="mdetail-params">
  1645. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1646. <ul><li><code>this</code> : Ext.CycleButton<div class="sub-desc"></div></li><li><code>item</code> : Ext.menu.CheckItem<div class="sub-desc">The menu item that was selected</div></li> </ul>
  1647. </div>
  1648. </div>
  1649. </div>
  1650. </td>
  1651. <td class="msource">CycleButton</td>
  1652. </tr>
  1653. <tr class="event-row inherited expandable">
  1654. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1655. <td class="sig">
  1656. <a id="Ext.CycleButton-click"></a>
  1657. <b>click</b> : (&nbsp;<code>Button this</code>, <code>EventObject e</code>&nbsp;) <div class="mdesc">
  1658. <div class="short">Fires when this button is clicked</div>
  1659. <div class="long">
  1660. Fires when this button is clicked <div class="mdetail-params">
  1661. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1662. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>e</code> : EventObject<div class="sub-desc">The click event</div></li> </ul>
  1663. </div>
  1664. </div>
  1665. </div>
  1666. </td>
  1667. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-click" href="output/Ext.Button.html#event-click">Button</a></td>
  1668. </tr>
  1669. <tr class="event-row inherited alt expandable">
  1670. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1671. <td class="sig">
  1672. <a id="Ext.CycleButton-destroy"></a>
  1673. <b>destroy</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1674. <div class="short">Fires after the component is destroyed.</div>
  1675. <div class="long">
  1676. Fires after the component is destroyed. <div class="mdetail-params">
  1677. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1678. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1679. </div>
  1680. </div>
  1681. </div>
  1682. </td>
  1683. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-destroy" href="output/Ext.Component.html#event-destroy">Component</a></td>
  1684. </tr>
  1685. <tr class="event-row inherited expandable">
  1686. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1687. <td class="sig">
  1688. <a id="Ext.CycleButton-disable"></a>
  1689. <b>disable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1690. <div class="short">Fires after the component is disabled.</div>
  1691. <div class="long">
  1692. Fires after the component is disabled. <div class="mdetail-params">
  1693. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1694. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. </td>
  1699. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-disable" href="output/Ext.Component.html#event-disable">Component</a></td>
  1700. </tr>
  1701. <tr class="event-row inherited alt expandable">
  1702. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1703. <td class="sig">
  1704. <a id="Ext.CycleButton-enable"></a>
  1705. <b>enable</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1706. <div class="short">Fires after the component is enabled.</div>
  1707. <div class="long">
  1708. Fires after the component is enabled. <div class="mdetail-params">
  1709. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1710. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1711. </div>
  1712. </div>
  1713. </div>
  1714. </td>
  1715. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-enable" href="output/Ext.Component.html#event-enable">Component</a></td>
  1716. </tr>
  1717. <tr class="event-row inherited expandable">
  1718. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1719. <td class="sig">
  1720. <a id="Ext.CycleButton-hide"></a>
  1721. <b>hide</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1722. <div class="short">Fires after the component is hidden.</div>
  1723. <div class="long">
  1724. Fires after the component is hidden. <div class="mdetail-params">
  1725. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1726. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1727. </div>
  1728. </div>
  1729. </div>
  1730. </td>
  1731. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-hide" href="output/Ext.Component.html#event-hide">Component</a></td>
  1732. </tr>
  1733. <tr class="event-row inherited alt expandable">
  1734. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1735. <td class="sig">
  1736. <a id="Ext.CycleButton-menuhide"></a>
  1737. <b>menuhide</b> : (&nbsp;<code>Button this</code>, <code>Menu menu</code>&nbsp;) <div class="mdesc">
  1738. <div class="short">If this button has a menu, this event fires when it is hidden</div>
  1739. <div class="long">
  1740. If this button has a menu, this event fires when it is hidden <div class="mdetail-params">
  1741. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1742. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>menu</code> : Menu<div class="sub-desc"></div></li> </ul>
  1743. </div>
  1744. </div>
  1745. </div>
  1746. </td>
  1747. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-menuhide" href="output/Ext.Button.html#event-menuhide">Button</a></td>
  1748. </tr>
  1749. <tr class="event-row inherited expandable">
  1750. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1751. <td class="sig">
  1752. <a id="Ext.CycleButton-menushow"></a>
  1753. <b>menushow</b> : (&nbsp;<code>Button this</code>, <code>Menu menu</code>&nbsp;) <div class="mdesc">
  1754. <div class="short">If this button has a menu, this event fires when it is shown</div>
  1755. <div class="long">
  1756. If this button has a menu, this event fires when it is shown <div class="mdetail-params">
  1757. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1758. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>menu</code> : Menu<div class="sub-desc"></div></li> </ul>
  1759. </div>
  1760. </div>
  1761. </div>
  1762. </td>
  1763. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-menushow" href="output/Ext.Button.html#event-menushow">Button</a></td>
  1764. </tr>
  1765. <tr class="event-row inherited alt expandable">
  1766. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1767. <td class="sig">
  1768. <a id="Ext.CycleButton-menutriggerout"></a>
  1769. <b>menutriggerout</b> : (&nbsp;<code>Button this</code>, <code>Menu menu</code>, <code>EventObject e</code>&nbsp;) <div class="mdesc">
  1770. <div class="short">If this button has a menu, this event fires when the mouse leaves the menu triggering element</div>
  1771. <div class="long">
  1772. If this button has a menu, this event fires when the mouse leaves the menu triggering element <div class="mdetail-params">
  1773. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1774. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>menu</code> : Menu<div class="sub-desc"></div></li><li><code>e</code> : EventObject<div class="sub-desc"></div></li> </ul>
  1775. </div>
  1776. </div>
  1777. </div>
  1778. </td>
  1779. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-menutriggerout" href="output/Ext.Button.html#event-menutriggerout">Button</a></td>
  1780. </tr>
  1781. <tr class="event-row inherited expandable">
  1782. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1783. <td class="sig">
  1784. <a id="Ext.CycleButton-menutriggerover"></a>
  1785. <b>menutriggerover</b> : (&nbsp;<code>Button this</code>, <code>Menu menu</code>, <code>EventObject e</code>&nbsp;) <div class="mdesc">
  1786. <div class="short">If this button has a menu, this event fires when the mouse enters the menu triggering element</div>
  1787. <div class="long">
  1788. If this button has a menu, this event fires when the mouse enters the menu triggering element <div class="mdetail-params">
  1789. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1790. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>menu</code> : Menu<div class="sub-desc"></div></li><li><code>e</code> : EventObject<div class="sub-desc"></div></li> </ul>
  1791. </div>
  1792. </div>
  1793. </div>
  1794. </td>
  1795. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-menutriggerover" href="output/Ext.Button.html#event-menutriggerover">Button</a></td>
  1796. </tr>
  1797. <tr class="event-row inherited alt expandable">
  1798. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1799. <td class="sig">
  1800. <a id="Ext.CycleButton-mouseout"></a>
  1801. <b>mouseout</b> : (&nbsp;<code>Button this</code>, <code>Event e</code>&nbsp;) <div class="mdesc">
  1802. <div class="short">Fires when the mouse exits the button</div>
  1803. <div class="long">
  1804. Fires when the mouse exits the button <div class="mdetail-params">
  1805. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1806. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>e</code> : Event<div class="sub-desc">The event object</div></li> </ul>
  1807. </div>
  1808. </div>
  1809. </div>
  1810. </td>
  1811. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-mouseout" href="output/Ext.Button.html#event-mouseout">Button</a></td>
  1812. </tr>
  1813. <tr class="event-row inherited expandable">
  1814. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1815. <td class="sig">
  1816. <a id="Ext.CycleButton-mouseover"></a>
  1817. <b>mouseover</b> : (&nbsp;<code>Button this</code>, <code>Event e</code>&nbsp;) <div class="mdesc">
  1818. <div class="short">Fires when the mouse hovers over the button</div>
  1819. <div class="long">
  1820. Fires when the mouse hovers over the button <div class="mdetail-params">
  1821. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1822. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>e</code> : Event<div class="sub-desc">The event object</div></li> </ul>
  1823. </div>
  1824. </div>
  1825. </div>
  1826. </td>
  1827. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-mouseover" href="output/Ext.Button.html#event-mouseover">Button</a></td>
  1828. </tr>
  1829. <tr class="event-row inherited alt expandable">
  1830. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1831. <td class="sig">
  1832. <a id="Ext.CycleButton-render"></a>
  1833. <b>render</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1834. <div class="short">Fires after the component is rendered.</div>
  1835. <div class="long">
  1836. Fires after the component is rendered. <div class="mdetail-params">
  1837. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1838. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1839. </div>
  1840. </div>
  1841. </div>
  1842. </td>
  1843. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-render" href="output/Ext.Component.html#event-render">Component</a></td>
  1844. </tr>
  1845. <tr class="event-row inherited expandable">
  1846. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1847. <td class="sig">
  1848. <a id="Ext.CycleButton-show"></a>
  1849. <b>show</b> : (&nbsp;<code>Ext.Component this</code>&nbsp;) <div class="mdesc">
  1850. <div class="short">Fires after the component is shown.</div>
  1851. <div class="long">
  1852. Fires after the component is shown. <div class="mdetail-params">
  1853. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1854. <ul><li><code>this</code> : Ext.Component<div class="sub-desc"></div></li> </ul>
  1855. </div>
  1856. </div>
  1857. </div>
  1858. </td>
  1859. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-show" href="output/Ext.Component.html#event-show">Component</a></td>
  1860. </tr>
  1861. <tr class="event-row inherited alt expandable">
  1862. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1863. <td class="sig">
  1864. <a id="Ext.CycleButton-staterestore"></a>
  1865. <b>staterestore</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1866. <div class="short">Fires after the state of the component is restored.</div>
  1867. <div class="long">
  1868. Fires after the state of the component is restored. <div class="mdetail-params">
  1869. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1870. <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>
  1871. </div>
  1872. </div>
  1873. </div>
  1874. </td>
  1875. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-staterestore" href="output/Ext.Component.html#event-staterestore">Component</a></td>
  1876. </tr>
  1877. <tr class="event-row inherited expandable">
  1878. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1879. <td class="sig">
  1880. <a id="Ext.CycleButton-statesave"></a>
  1881. <b>statesave</b> : (&nbsp;<code>Ext.Component this</code>, <code>Object state</code>&nbsp;) <div class="mdesc">
  1882. <div class="short">Fires after the state of the component is saved to the configured state provider.</div>
  1883. <div class="long">
  1884. Fires after the state of the component is saved to the configured state provider. <div class="mdetail-params">
  1885. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1886. <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>
  1887. </div>
  1888. </div>
  1889. </div>
  1890. </td>
  1891. <td class="msource"><a ext:cls="Ext.Component" ext:member="#event-statesave" href="output/Ext.Component.html#event-statesave">Component</a></td>
  1892. </tr>
  1893. <tr class="event-row inherited alt expandable">
  1894. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1895. <td class="sig">
  1896. <a id="Ext.CycleButton-toggle"></a>
  1897. <b>toggle</b> : (&nbsp;<code>Button this</code>, <code>Boolean pressed</code>&nbsp;) <div class="mdesc">
  1898. <div class="short">Fires when the "pressed" state of this button changes (only if enableToggle = true)</div>
  1899. <div class="long">
  1900. Fires when the "pressed" state of this button changes (only if enableToggle = true) <div class="mdetail-params">
  1901. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1902. <ul><li><code>this</code> : Button<div class="sub-desc"></div></li><li><code>pressed</code> : Boolean<div class="sub-desc"></div></li> </ul>
  1903. </div>
  1904. </div>
  1905. </div>
  1906. </td>
  1907. <td class="msource"><a ext:cls="Ext.Button" ext:member="#event-toggle" href="output/Ext.Button.html#event-toggle">Button</a></td>
  1908. </tr>
  1909. </table>
  1910. </div>