4c9c4418bd4ca1a07871e987a0bd88a395731e66.svn-base 102 KB

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