/* 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

Files

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\n

Note: Only Ext.Panels and all subclasses of Ext.Panel may be used in an accordion layout Container.

\n\n\n

This class is intended to be extended or created via the layout\nconfiguration property. See Ext.Container.layout for additional details.

\n\n\n

Example usage:

\n\n\n
var 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\n
Defined By

Config options

Ext.layout.AccordionLayout
view source
: Boolean
True to swap the position of each panel as it is expanded so that it becomes the first item in the container,\nfalse t...

True 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).

\n

Defaults to: false

Ext.layout.AccordionLayout
view source
: Boolean
True to slide the contained panels open and closed during expand/collapse using animation, false to open and\nclose di...

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.

\n

Defaults to: false

Ext.layout.AccordionLayout
view source
: Boolean
True to set each contained item's width to 'auto', false to use the item's current width (defaults to true). ...

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.

\n

Defaults to: true

Ext.layout.AccordionLayout
view source
: Boolean
True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools\nin the cont...

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).

\n

Defaults to: false

An optional extra CSS class that will be added to the container. ...

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\n

Note: extraCls defaults to '' except for the following classes\nwhich assign a value by default:\n

\nTo configure the above Classes with an extra CSS class append to the default. For example,\nfor ColumnLayout:\n
extraCls: 'x-column custom-class'\n
\n

\n\n
Ext.layout.AccordionLayout
view source
: Boolean
True to adjust the active item's height to fill the available space in the container, false to use the\nitem's current...

True 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).

\n

Defaults to: true

Ext.layout.AccordionLayout
view source
: Boolean
True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false). ...

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.

\n

Defaults to: false

True to hide each contained item on render (defaults to false).

\n

True to hide each contained item on render (defaults to false).

\n
Ext.layout.AccordionLayout
view source
: Boolean
Experimental. ...

Experimental. If animate is set to true, this will result in each animation running in sequence.

\n

Defaults to: false

Ext.layout.AccordionLayout
view source
: Boolean
True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow\nexpand/co...

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.

\n

Defaults to: true

Defined By

Properties

private

\n

private

\n
The Ext.Template used by Field rendering layout classes (such as\nExt.layout.FormLayout) to create the DOM structure o...

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.

\n

Placeholder for the derived layouts

\n

Placeholder for the derived layouts

\n
private ...

private

\n

Defaults to: true

Overrides: Ext.layout.ContainerLayout.monitorResize

Ext.layout.AccordionLayout
view source
: Stringprivate
...
\n

Defaults to: 'accordion'

Overrides: Ext.layout.FitLayout.type

Defined By

Methods

Workaround for how IE measures autoWidth elements. ...

Workaround 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
\n

Parameters

  • target : Object
    \n
  • viewFlag : Object
    \n
...
\n

Parameters

  • c : Object
    \n
Ext.layout.AccordionLayout
view source
( p, anim )private
private ...

private

\n

Parameters

  • p : Object
    \n
  • anim : Object
    \n
Applies extraCls and hides the item if renderHidden is true ...

Applies extraCls and hides the item if renderHidden is true

\n

Parameters

  • c : Object
    \n
Destroys this layout. ...

Destroys 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.

\n
private. ...

private.\nGet all rendered items to lay out.

\n

Parameters

  • ct : Object
    \n
private ...

private

\n

Parameters

  • c : Object
    \n
  • target : Object
    \n
private ...

private

\n
private ...

private

\n

Parameters

  • ct : Object
    \n
  • target : Object
    \n

Overrides: Ext.layout.ContainerLayout.onLayout

Ext.layout.AccordionLayout
view source
( c )private
...
\n

Parameters

  • c : Object
    \n

Overrides: Ext.layout.ContainerLayout.onRemove

Parses a number or string representing margin sizes into an object. ...

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)

\n

Parameters

Returns

  • Object

    An object with margin sizes for top, right, bottom and left

    \n
private ...

private

\n

Parameters

  • ct : Object
    \n
  • target : Object
    \n
Ext.layout.AccordionLayout
view source
( c, position, target )private
Renders the given Component into the target Element. ...

Renders the given Component into the target Element. If the Component is already rendered,\nit is moved to the provided target instead.

\n

Parameters

  • c : Ext.Component

    The Component to render

    \n
  • position : Number

    The position within the target to render the item to

    \n
  • target : Ext.Element

    The target Element

    \n

Overrides: Ext.layout.ContainerLayout.renderItem

Ext.layout.AccordionLayout
view source
( item, expand )private
private ...

private

\n

Parameters

  • item : Object
    \n
  • expand : Object
    \n
Ext.layout.AccordionLayout
view source
( item )
Sets the active (expanded) item in the layout. ...

Sets the active (expanded) item in the layout.

\n

Parameters

  • item : String/Number

    The string component id or numeric index of the item to activate

    \n
private ...

private

\n

Parameters

  • ct : Object
    \n
Ext.layout.AccordionLayout
view source
( item, size )private
private ...

private

\n

Parameters

  • item : Object
    \n
  • size : Object
    \n

Overrides: Ext.layout.FitLayout.setItemSize

","superclasses":["Ext.layout.ContainerLayout","Ext.layout.FitLayout"],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"AccordionLayout.html#Ext-layout-AccordionLayout","filename":"AccordionLayout.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"activeItem","id":"property-activeItem"},{"tagname":"property","owner":"Ext.layout.ContainerLayout","meta":{},"name":"fieldTpl","id":"property-fieldTpl"},{"tagname":"property","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"getLayoutTargetSize","id":"property-getLayoutTargetSize"},{"tagname":"property","owner":"Ext.layout.FitLayout","meta":{"private":true},"name":"monitorResize","id":"property-monitorResize"},{"tagname":"property","owner":"Ext.layout.AccordionLayout","meta":{"private":true},"name":"type","id":"property-type"}],"cfg":[{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"activeOnTop","id":"cfg-activeOnTop"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"animate","id":"cfg-animate"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"autoWidth","id":"cfg-autoWidth"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"collapseFirst","id":"cfg-collapseFirst"},{"tagname":"cfg","owner":"Ext.layout.ContainerLayout","meta":{},"name":"extraCls","id":"cfg-extraCls"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"fill","id":"cfg-fill"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"hideCollapseTool","id":"cfg-hideCollapseTool"},{"tagname":"cfg","owner":"Ext.layout.ContainerLayout","meta":{},"name":"renderHidden","id":"cfg-renderHidden"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"sequence","id":"cfg-sequence"},{"tagname":"cfg","owner":"Ext.layout.AccordionLayout","meta":{},"name":"titleCollapse","id":"cfg-titleCollapse"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"IEMeasureHack","id":"method-IEMeasureHack"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"afterRemove","id":"method-afterRemove"},{"tagname":"method","owner":"Ext.layout.AccordionLayout","meta":{"private":true},"name":"beforeExpand","id":"method-beforeExpand"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"configureItem","id":"method-configureItem"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"protected":true,"private":true},"name":"destroy","id":"method-destroy"},{"tagname":"method","owner":"Ext.layout.FitLayout","meta":{"private":true},"name":"getLayoutTargetSize","id":"method-getLayoutTargetSize"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"getRenderedItems","id":"method-getRenderedItems"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"isValidParent","id":"method-isValidParent"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"layout","id":"method-layout"},{"tagname":"method","owner":"Ext.layout.FitLayout","meta":{"private":true},"name":"onLayout","id":"method-onLayout"},{"tagname":"method","owner":"Ext.layout.AccordionLayout","meta":{"private":true},"name":"onRemove","id":"method-onRemove"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"onResize","id":"method-onResize"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{},"name":"parseMargins","id":"method-parseMargins"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"renderAll","id":"method-renderAll"},{"tagname":"method","owner":"Ext.layout.AccordionLayout","meta":{"private":true},"name":"renderItem","id":"method-renderItem"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"runLayout","id":"method-runLayout"},{"tagname":"method","owner":"Ext.layout.AccordionLayout","meta":{"private":true},"name":"setActive","id":"method-setActive"},{"tagname":"method","owner":"Ext.layout.AccordionLayout","meta":{},"name":"setActiveItem","id":"method-setActiveItem"},{"tagname":"method","owner":"Ext.layout.ContainerLayout","meta":{"private":true},"name":"setContainer","id":"method-setContainer"},{"tagname":"method","owner":"Ext.layout.AccordionLayout","meta":{"private":true},"name":"setItemSize","id":"method-setItemSize"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.layout.AccordionLayout","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.layout.AccordionLayout","mixins":[],"mixedInto":[]});