/* 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 Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements 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 department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_layout_ToolbarLayout({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.layout.ContainerLayout","uses":[],"html":"
Hierarchy
Ext.layout.ContainerLayoutExt.layout.ToolbarLayoutFiles
Layout manager used by Ext.Toolbar. This is highly specialised for use by Toolbars and would not\nusually be used by any other class.
\nAn optional extra CSS class that will be added to the container. This can be useful for adding\ncustomized styles to the container or any of its children using standard CSS rules. See\nExt.Component.ctCls also.
\n\n\nNote: extraCls defaults to '' except for the following classes\nwhich assign a value by default:\n
extraCls: 'x-column custom-class'\n
\n\n\nTrue to hide each contained item on render (defaults to false).
\nTrue to hide each contained item on render (defaults to false).
\nThe Ext.Template used by Field rendering layout classes (such as\nExt.layout.FormLayout) to create the DOM structure of a fully wrapped,\nlabeled and styled form Field. A default Template is supplied, but this may be\noverriden to create custom field structures. The template processes values returned from\nExt.layout.FormLayout.getTemplateArgs.
\nPlaceholder for the derived layouts
\nPlaceholder for the derived layouts
\nUsed internally to record whether the last layout caused an overflow or not
\nDefaults to: false
Defaults to: true
Overrides: Ext.layout.ContainerLayout.monitorResize
The expand button which triggers the overflow menu to be shown
\nThe expand button which triggers the overflow menu to be shown
\nThe expand menu - holds items for every Toolbar item that cannot be shown\nbecause the Toolbar is currently not wide enough.
\nHTML fragment to render into the toolbar overflow menu if there are no items to display
\nDefaults to: '<div class="x-toolbar-no-items">(None)</div>'
String used to build the HTML injected to support the Toolbar's layout. The align property is\ninjected into this string inside the td.x-toolbar-left element during onLayout.
\nWorkaround for how IE measures autoWidth elements. It prefers bottom-up measurements
\n\n whereas other browser prefer top-down. We will hide all target child elements before we measure and\n put them back to get an accurate measurement.\n
\nAdds the given Toolbar item to the given menu. Buttons inside a buttongroup are added individually.
\nThe menu to add to
\nThe component to add
\nCalled before the expand menu is shown, this rebuilds the menu since it was last shown because\nit is possible that the items hidden due to space limitations on the Toolbar have changed since.
\nThe menu
\nDeletes the sub-menu of each item in the expander menu. Submenus are created for items such as\nsplitbuttons and buttongroups, where the Toolbar item cannot be represented by a single menu item
\nApplies extraCls and hides the item if renderHidden is true
\nReturns a menu config for a given component. This config is used to create a menu item\nto be added to the expander menu
\nThe component to create the config for
\nPassed through to the menu item
\nCalled at the end of onLayout. At this point the Toolbar has already been resized, so we need\nto fit the items into the available width. We add up the width required by all of the items in\nthe toolbar - if we don't have enough space we hide the extra items and render the expand menu\ntrigger.
\nThe Element the Toolbar is currently laid out within
\nReturns the width of the given toolbar item. If the item is currently hidden because there\nis not enough room to render it, its previous width is returned
\nThe component to measure
\nThe width of the item
\nprivate.\nGet all rendered items to lay out.
\nHides an item because it will not fit in the available width. The item will be unhidden again\nif the Toolbar is resized to be large enough to show it
\nThe item to hide
\nCreates the expand trigger and menu, adding them to the
Inserts the given Toolbar item into the given element
\nThe component to add
\nThe target to add the component to
\nThe position to add the component at
\nCreate the wrapping Toolbar HTML and render/move all the items into the correct places
\nOverrides: Ext.layout.ContainerLayout.onLayout
Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations\n(e.g. 10, \"10\", \"10 10\", \"10 10 10\" and \"10 10 10 10\" are all valid options and would return the same result)
\nAn object with margin sizes for top, right, bottom and left
\nRenders the given Component into the target Element. If the Component is already rendered,\nit is moved to the provided target instead.
\nThe Component to render
\n\nThe position within the target to render the item to
\n\nThe target Element
\n\nUnhides an item that was previously hidden due to there not being enough space left on the Toolbar
\nThe item to show
\n