/* 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_AccordionLayout({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.layout.FitLayout","uses":[],"html":"
Hierarchy
Ext.layout.ContainerLayoutExt.layout.FitLayoutExt.layout.AccordionLayoutFiles
This is a layout that manages multiple Panels in an expandable accordion style such that only\none Panel can be expanded at any given time. Each Panel has built-in support for expanding and collapsing.
\n\n\nNote: Only Ext.Panels and all subclasses of Ext.Panel may be used in an accordion layout Container.
\n\n\nThis class is intended to be extended or created via the layout\nconfiguration property. See Ext.Container.layout for additional details.
\n\n\nExample usage:
\n\n\nvar accordion = new Ext.Panel({\n title: 'Accordion Layout',\n layout:'accordion',\n defaults: {\n // applied to each contained panel\n bodyStyle: 'padding:15px'\n },\n layoutConfig: {\n // layout-specific configs go here\n titleCollapse: false,\n animate: true,\n activeOnTop: true\n },\n items: [{\n title: 'Panel 1',\n html: '<p>Panel content!</p>'\n },{\n title: 'Panel 2',\n html: '<p>Panel content!</p>'\n },{\n title: 'Panel 3',\n html: '<p>Panel content!</p>'\n }]\n});\n
\n\nTrue to swap the position of each panel as it is expanded so that it becomes the first item in the container,\nfalse to keep the panels in the rendered order. This is NOT compatible with \"animate:true\" (defaults to false).
\nDefaults to: false
True to slide the contained panels open and closed during expand/collapse using animation, false to open and\nclose directly with no animation (defaults to false). Note: to defer to the specific config setting of each\ncontained panel for this property, set this to undefined at the layout level.
\nDefaults to: false
True to set each contained item's width to 'auto', false to use the item's current width (defaults to true).\nNote that some components, in particular the grid, will not function properly within\nlayouts if they have auto width, so in such cases this config should be set to false.
\nDefaults to: true
True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools\nin the contained panels' title bars, false to render it last (defaults to false).
\nDefaults to: false
An 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 adjust the active item's height to fill the available space in the container, false to use the\nitem's current height, or auto height if not explicitly set (defaults to true).
\nDefaults to: true
True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false).\nWhen set to true, titleCollapse should be true also.
\nDefaults to: false
True to hide each contained item on render (defaults to false).
\nTrue to hide each contained item on render (defaults to false).
\nExperimental. If animate is set to true, this will result in each animation running in sequence.
\nDefaults to: false
True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow\nexpand/collapse only when the toggle tool button is clicked (defaults to true). When set to false,\nhideCollapseTool should be false also.
\nDefaults to: true
The 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
\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
\nApplies extraCls and hides the item if renderHidden is true
\nDestroys this layout. This is a template method that is empty by default, but should be implemented\nby subclasses that require explicit destruction to purge event handlers or remove DOM nodes.
\nprivate.\nGet all rendered items to lay out.
\nParses 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
\nThe position within the target to render the item to
\nThe target Element
\nOverrides: Ext.layout.ContainerLayout.renderItem