|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_Toolbar({"alternateClassNames":[],"aliases":{"widget":["toolbar"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.PagingToolbar"],"extends":"Ext.Container","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.Component' rel='Ext.Component' class='docClass'>Ext.Component</a><div class='subclass '><a href='#!/api/Ext.BoxComponent' rel='Ext.BoxComponent' class='docClass'>Ext.BoxComponent</a><div class='subclass '><a href='#!/api/Ext.Container' rel='Ext.Container' class='docClass'>Ext.Container</a><div class='subclass '><strong>Ext.Toolbar</strong></div></div></div></div></div><h4>Subclasses</h4><div class='dependency'><a href='#!/api/Ext.PagingToolbar' rel='Ext.PagingToolbar' class='docClass'>Ext.PagingToolbar</a></div><h4>Files</h4><div class='dependency'><a href='source/Toolbar.html#Ext-Toolbar' target='_blank'>Toolbar.js</a></div></pre><div class='doc-contents'><p>Basic Toolbar class. Although the <tt><a href=\"#!/api/Ext.Container-cfg-defaultType\" rel=\"Ext.Container-cfg-defaultType\" class=\"docClass\">defaultType</a></tt> for Toolbar\nis <tt><a href=\"#!/api/Ext.Button\" rel=\"Ext.Button\" class=\"docClass\">button</a></tt>, Toolbar elements (child items for the Toolbar container) may\nbe virtually any type of Component. Toolbar elements can be created explicitly via their constructors,\nor implicitly via their xtypes, and can be <tt><a href=\"#!/api/Ext.Toolbar-event-add\" rel=\"Ext.Toolbar-event-add\" class=\"docClass\">add</a></tt>ed dynamically.</p>\n\n\n<p>Some items have shortcut strings for creation:</p>\n\n\n<pre><u>Shortcut</u> <u>xtype</u> <u>Class</u> <u>Description</u>\n'->' 'tbfill' <a href=\"#!/api/Ext.Toolbar.Fill\" rel=\"Ext.Toolbar.Fill\" class=\"docClass\">Ext.Toolbar.Fill</a> begin using the right-justified button container\n'-' 'tbseparator' <a href=\"#!/api/Ext.Toolbar.Separator\" rel=\"Ext.Toolbar.Separator\" class=\"docClass\">Ext.Toolbar.Separator</a> add a vertical separator bar between toolbar items\n' ' 'tbspacer' <a href=\"#!/api/Ext.Toolbar.Spacer\" rel=\"Ext.Toolbar.Spacer\" class=\"docClass\">Ext.Toolbar.Spacer</a> add horiztonal space between elements\n</pre>\n\n\n<p>Example usage of various elements:</p>\n\n<pre><code>var tb = new <a href=\"#!/api/Ext.Toolbar\" rel=\"Ext.Toolbar\" class=\"docClass\">Ext.Toolbar</a>({\n renderTo: document.body,\n width: 600,\n height: 100,\n items: [\n {\n // xtype: 'button', // default for Toolbars, same as 'tbbutton'\n text: 'Button'\n },\n {\n xtype: 'splitbutton', // same as 'tbsplitbutton'\n text: 'Split Button'\n },\n // begin using the right-justified button container\n '->', // same as {xtype: 'tbfill'}, // <a href=\"#!/api/Ext.Toolbar.Fill\" rel=\"Ext.Toolbar.Fill\" class=\"docClass\">Ext.Toolbar.Fill</a>\n {\n xtype: 'textfield',\n name: 'field1',\n emptyText: 'enter search term'\n },\n // add a vertical separator bar between toolbar items\n '-', // same as {xtype: 'tbseparator'} to create <a href=\"#!/api/Ext.Toolbar.Separator\" rel=\"Ext.Toolbar.Separator\" class=\"docClass\">Ext.Toolbar.Separator</a>\n 'text 1', // same as {xtype: 'tbtext', text: 'text1'} to create <a href=\"#!/api/Ext.Toolbar.TextItem\" rel=\"Ext.Toolbar.TextItem\" class=\"docClass\">Ext.Toolbar.TextItem</a>\n {xtype: 'tbspacer'},// same as ' ' to create <a href=\"#!/api/Ext.Toolbar.Spacer\" rel=\"Ext.Toolbar.Spacer\" class=\"docClass\">Ext.Toolbar.Spacer</a>\n 'text 2',\n {xtype: 'tbspacer', width: 50}, // add a 50px space\n 'text 3'\n ]\n});\n</code></pre>\n\n\n<p>Example adding a ComboBox within a menu of a button:</p>\n\n<pre><code>// ComboBox creation\nvar combo = new <a href=\"#!
|