📄 ext.toolbar.button.html
字号:
<td class="msource"><a ext:cls="Ext.Button" ext:member="#text" href="output/Ext.Button.html#text">Button</a></td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-toggleGroup"></a> <b>toggleGroup</b> : String <div class="mdesc"> The group this toggle button is a member of (only 1 per group can be pressed, only applies if enableToggle = true) </div> </td> <td class="msource"><a ext:cls="Ext.Button" ext:member="#toggleGroup" href="output/Ext.Button.html#toggleGroup">Button</a></td> </tr> <tr class="config-row inherited expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-toggleHandler"></a> <b>toggleHandler</b> : Function <div class="mdesc"> <div class="short">Function called when a Button with enableToggle set to true is clicked. Two arguments are passed: button : Ext.Button...</div> <div class="long"> Function called when a Button with <a ext:cls="Ext.Button" ext:member="enableToggle" href="output/Ext.Button.html#enableToggle">enableToggle</a> set to true is clicked. Two arguments are passed:<ul class="mdetail-params"> <li><b>button</b> : Ext.Button<div class="sub-desc">this Button object</div></li> <li><b>state</b> : Boolean<div class="sub-desc">The next state if the Button, true means pressed.</div></li> </ul> </div> </div> </td> <td class="msource"><a ext:cls="Ext.Button" ext:member="#toggleHandler" href="output/Ext.Button.html#toggleHandler">Button</a></td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-tooltip"></a> <b>tooltip</b> : String/Object <div class="mdesc"> The tooltip for the button - can be a string or QuickTips config object </div> </td> <td class="msource"><a ext:cls="Ext.Button" ext:member="#tooltip" href="output/Ext.Button.html#tooltip">Button</a></td> </tr> <tr class="config-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-tooltipType"></a> <b>tooltipType</b> : String <div class="mdesc"> The type of tooltip to use. Either "qtip" (default) for QuickTips or "title" for title attribute. </div> </td> <td class="msource"><a ext:cls="Ext.Button" ext:member="#tooltipType" href="output/Ext.Button.html#tooltipType">Button</a></td> </tr> <tr class="config-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-type"></a> <b>type</b> : String <div class="mdesc"> submit, reset or button - defaults to 'button' </div> </td> <td class="msource"><a ext:cls="Ext.Button" ext:member="#type" href="output/Ext.Button.html#type">Button</a></td> </tr> <tr class="config-row inherited expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-xtype"></a> <b>xtype</b> : String <div class="mdesc"> <div class="short">The registered xtype to create. This config option is not used when passing a config object into a constructor. This ...</div> <div class="long"> 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> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#xtype" href="output/Ext.Component.html#xtype">Component</a></td> </tr> </table> <a id="Ext.Toolbar.Button-props"></a> <h2>Public Properties</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2">Property</th> <th class="msource-header">Defined By</th> </tr> <tr class="property-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-disabled"></a> <b>disabled</b> : Boolean <div class="mdesc"> True if this component is disabled. Read-only. </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#disabled" href="output/Ext.Component.html#disabled">Component</a></td> </tr> <tr class="property-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-hidden"></a> <b>hidden</b> : Boolean <div class="mdesc"> True if this component is hidden. Read-only. </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#hidden" href="output/Ext.Component.html#hidden">Component</a></td> </tr> <tr class="property-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-initialConfig"></a> <b>initialConfig</b> : Object <div class="mdesc"> This Component's initial configuration specification. Read-only. </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#initialConfig" href="output/Ext.Component.html#initialConfig">Component</a></td> </tr> <tr class="property-row inherited alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-ownerCt"></a> <b>ownerCt</b> : Ext.Container <div class="mdesc"> <div class="short">The component's owner Ext.Container (defaults to undefined, and is set automatically whenthe component is added to a...</div> <div class="long"> The component's owner <a ext:cls="Ext.Container" href="output/Ext.Container.html">Ext.Container</a> (defaults to undefined, and is set automatically whenthe component is added to a container). Read-only. </div> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#ownerCt" href="output/Ext.Component.html#ownerCt">Component</a></td> </tr> <tr class="property-row inherited"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-pressed"></a> <b>pressed</b> : Boolean <div class="mdesc"> Read-only. True if this button is pressed (only if enableToggle = true) </div> </td> <td class="msource"><a ext:cls="Ext.Button" ext:member="#pressed" href="output/Ext.Button.html#pressed">Button</a></td> </tr> <tr class="property-row inherited alt"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-rendered"></a> <b>rendered</b> : Boolean <div class="mdesc"> True if this component has been rendered. Read-only. </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#rendered" href="output/Ext.Component.html#rendered">Component</a></td> </tr> </table> <a id="Ext.Toolbar.Button-methods"></a> <h2>Public Methods</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2">Method</th> <th class="msource-header">Defined By</th> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-Toolbar.Button"></a> <b>Toolbar.Button</b>( <code>Object config</code> ) <div class="mdesc"> <div class="short">Creates a new Button</div> <div class="long"> Creates a new Button <div class="mdetail-params"> <strong>Parameters:</strong> <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> <strong>Returns:</strong> <ul> <li><code></code></li> </ul> </div> </div> </div> </td> <td class="msource">Toolbar.Button</td> </tr> <tr class="method-row inherited alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-addClass"></a> <b>addClass</b>( <code>string cls</code> ) : void <div class="mdesc"> <div class="short">Adds a CSS class to the component's underlying element.</div> <div class="long"> Adds a CSS class to the component's underlying element. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>cls</code> : string<div class="sub-desc">The CSS class name to add</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource"><a ext:cls="Ext.Component" ext:member="#addClass" href="output/Ext.Component.html#addClass">Component</a></td> </tr> <tr class="method-row inherited expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-addEvents"></a> <b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc"> <div class="short">Used to define events on this Observable</div> <div class="long"> Used to define events on this Observable <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td> </tr> <tr class="method-row inherited alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.Toolbar.Button-addListener"></a>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -