source: trunk/web/addons/job_monarch/lib/extjs/docs/output/Ext.layout.Accordion.html @ 619

Last change on this file since 619 was 619, checked in by ramonb, 15 years ago

lib/:

  • added new AJAX dependancies: ExtJS, pChart, Lightbox2
File size: 13.9 KB
Line 
1        <div class="body-wrap">
2        <div class="top-tools">
3            <a class="inner-link" href="#Ext.layout.Accordion-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4            <a class="inner-link" href="#Ext.layout.Accordion-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5            <a class="inner-link" href="#Ext.layout.Accordion-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6                            <a class="inner-link" href="#Ext.layout.Accordion-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7                        <a class="bookmark" href="../docs/?class=Ext.layout.Accordion"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8        </div>
9                <div class="inheritance res-block">
10<pre class="res-block-inner"><a ext:cls="Ext.layout.ContainerLayout" ext:member="" href="output/Ext.layout.ContainerLayout.html">ContainerLayout</a>
11  <img src="resources/elbow-end.gif"/><a ext:cls="Ext.layout.FitLayout" ext:member="" href="output/Ext.layout.FitLayout.html">FitLayout</a>
12    <img src="resources/elbow-end.gif"/>Accordion</pre></div>
13                <h1>Class Ext.layout.Accordion</h1>
14        <table cellspacing="0">
15            <tr><td class="label">Package:</td><td class="hd-info">Ext.layout</td></tr>
16            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/AccordionLayout.js" target="_blank">AccordionLayout.js</a></td></tr>
17            <tr><td class="label">Class:</td><td class="hd-info">Accordion</td></tr>
18                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.layout.FitLayout" ext:member="" href="output/Ext.layout.FitLayout.html">FitLayout</a></td></tr>
19                    </table>
20        <div class="description">
21            *
22<p>This is a layout that contains multiple panels in an expandable accordion style such that only one
23panel can be open at any given time.  Each panel has built-in support for expanding and collapsing.
24This class is intended to be extended or created via the layout:'accordion' <a ext:cls="Ext.Container" ext:member="layout" href="output/Ext.Container.html#layout">Ext.Container.layout</a>
25config, and should generally not need to be created directly via the new keyword.</p>
26<p>Note that when creating a layout via config, the layout-specific config properties must be passed in via
27the <a ext:cls="Ext.Container" ext:member="layoutConfig" href="output/Ext.Container.html#layoutConfig">Ext.Container.layoutConfig</a> object which will then be applied internally to the layout.
28Example usage:</p>
29<pre><code>var accordion = <b>new</b> Ext.Panel({
30    title: <em>'Accordion Layout'</em>,
31    layout:<em>'accordion'</em>,
32    defaults: {
33        <i>// applied to each contained panel</i>
34        bodyStyle: <em>'padding:15px'</em>
35    },
36    layoutConfig: {
37        <i>// layout-specific configs go here</i>
38        titleCollapse: false,
39        animate: true,
40        activeOnTop: true
41    },
42    items: [{
43        title: <em>'Panel 1'</em>,
44        html: <em>'&lt;p&gt;Panel content!&lt;/p&gt;'</em>
45    },{
46        title: <em>'Panel 2'</em>,
47        html: <em>'&lt;p&gt;Panel content!&lt;/p&gt;'</em>
48    },{
49        title: <em>'Panel 3'</em>,
50        html: <em>'&lt;p&gt;Panel content!&lt;/p&gt;'</em>
51    }]
52});</code></pre>        </div>
53       
54        <div class="hr"></div>
55                <a id="Ext.layout.Accordion-configs"></a>
56        <h2>Config Options</h2>
57        <table cellspacing="0" class="member-table">
58            <tr>
59                <th class="sig-header" colspan="2">Config Options</th>
60                <th class="msource-header">Defined By</th>
61            </tr>
62                <tr class="config-row expandable">
63        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
64        <td class="sig">
65        <a id="Ext.layout.Accordion-activeOnTop"></a>
66            <b>activeOnTop</b> : Boolean            <div class="mdesc">
67                        <div class="short">True to swap the position of each panel as it is expanded so that it becomes the first item in the container, false t...</div>
68            <div class="long">
69                True to swap the position of each panel as it is expanded so that it becomes the first item in the container, false to keep the panels in the rendered order. <b>This is NOT compatible with "animate:true"</b> (defaults to false).            </div>
70                        </div>
71        </td>
72        <td class="msource">Accordion</td>
73    </tr>
74        <tr class="config-row alt expandable">
75        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
76        <td class="sig">
77        <a id="Ext.layout.Accordion-animate"></a>
78            <b>animate</b> : Boolean            <div class="mdesc">
79                        <div class="short">True to slide the contained panels open and closed during expand/collapse using animation, false to open and close di...</div>
80            <div class="long">
81                True to slide the contained panels open and closed during expand/collapse using animation, false to open and close directly with no animation (defaults to false). Note: to defer to the specific config setting of each contained panel for this property, set this to undefined at the layout level.            </div>
82                        </div>
83        </td>
84        <td class="msource">Accordion</td>
85    </tr>
86        <tr class="config-row expandable">
87        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
88        <td class="sig">
89        <a id="Ext.layout.Accordion-autoWidth"></a>
90            <b>autoWidth</b> : Boolean            <div class="mdesc">
91                        <div class="short">True to set each contained item's width to 'auto', false to use the item's current width (defaults to true). Note tha...</div>
92            <div class="long">
93                True to set each contained item's width to 'auto', false to use the item's current width (defaults to true). Note that some components, in particular the <a ext:cls="Ext.grid.GridPanel" href="output/Ext.grid.GridPanel.html">grid</a>, will not function properly within layouts if they have auto width, so in such cases this config should be set to false.            </div>
94                        </div>
95        </td>
96        <td class="msource">Accordion</td>
97    </tr>
98        <tr class="config-row alt expandable">
99        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
100        <td class="sig">
101        <a id="Ext.layout.Accordion-collapseFirst"></a>
102            <b>collapseFirst</b> : Boolean            <div class="mdesc">
103                        <div class="short">True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the cont...</div>
104            <div class="long">
105                True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the contained panels' title bars, false to render it last (defaults to false).            </div>
106                        </div>
107        </td>
108        <td class="msource">Accordion</td>
109    </tr>
110        <tr class="config-row inherited expandable">
111        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
112        <td class="sig">
113        <a id="Ext.layout.Accordion-extraCls"></a>
114            <b>extraCls</b> : String            <div class="mdesc">
115                        <div class="short">An optional extra CSS class that will be added to the container (defaults to ''). This can be useful for adding custo...</div>
116            <div class="long">
117                An optional extra CSS class that will be added to the container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules.            </div>
118                        </div>
119        </td>
120        <td class="msource"><a ext:cls="Ext.layout.ContainerLayout" ext:member="#extraCls" href="output/Ext.layout.ContainerLayout.html#extraCls">ContainerLayout</a></td>
121    </tr>
122        <tr class="config-row alt expandable">
123        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
124        <td class="sig">
125        <a id="Ext.layout.Accordion-fill"></a>
126            <b>fill</b> : Boolean            <div class="mdesc">
127                        <div class="short">True to adjust the active item's height to fill the available space in the container, false to use the item's current...</div>
128            <div class="long">
129                True to adjust the active item's height to fill the available space in the container, false to use the item's current height, or auto height if not explicitly set (defaults to true).            </div>
130                        </div>
131        </td>
132        <td class="msource">Accordion</td>
133    </tr>
134        <tr class="config-row expandable">
135        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
136        <td class="sig">
137        <a id="Ext.layout.Accordion-hideCollapseTool"></a>
138            <b>hideCollapseTool</b> : Boolean            <div class="mdesc">
139                        <div class="short">True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false). When se...</div>
140            <div class="long">
141                True to hide the contained panels' collapse/expand toggle buttons, false to display them (defaults to false). When set to true, <a ext:cls="Ext.layout.Accordion" ext:member="titleCollapse" href="output/Ext.layout.Accordion.html#titleCollapse">titleCollapse</a> should be true also.            </div>
142                        </div>
143        </td>
144        <td class="msource">Accordion</td>
145    </tr>
146        <tr class="config-row inherited alt">
147        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
148        <td class="sig">
149        <a id="Ext.layout.Accordion-renderHidden"></a>
150            <b>renderHidden</b> : Boolean            <div class="mdesc">
151                            True to hide each contained item on render (defaults to false).                        </div>
152        </td>
153        <td class="msource"><a ext:cls="Ext.layout.ContainerLayout" ext:member="#renderHidden" href="output/Ext.layout.ContainerLayout.html#renderHidden">ContainerLayout</a></td>
154    </tr>
155        <tr class="config-row">
156        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
157        <td class="sig">
158        <a id="Ext.layout.Accordion-sequence"></a>
159            <b>sequence</b> : Boolean            <div class="mdesc">
160                            <b>Experimental</b>. If animate is set to true, this will result in each animation running in sequence.                        </div>
161        </td>
162        <td class="msource">Accordion</td>
163    </tr>
164        <tr class="config-row alt expandable">
165        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
166        <td class="sig">
167        <a id="Ext.layout.Accordion-titleCollapse"></a>
168            <b>titleCollapse</b> : Boolean            <div class="mdesc">
169                        <div class="short">True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/co...</div>
170            <div class="long">
171                True to allow expand/collapse of each contained panel by clicking anywhere on the title bar, false to allow expand/collapse only when the toggle tool button is clicked (defaults to true). When set to false, <a ext:cls="Ext.layout.Accordion" ext:member="hideCollapseTool" href="output/Ext.layout.Accordion.html#hideCollapseTool">hideCollapseTool</a> should be false also.            </div>
172                        </div>
173        </td>
174        <td class="msource">Accordion</td>
175    </tr>
176            </table>
177                <a id="Ext.layout.Accordion-props"></a>
178        <h2>Public Properties</h2>
179                <table cellspacing="0" class="member-table">
180            <tr>
181                <th class="sig-header" colspan="2">Property</th>
182                <th class="msource-header">Defined By</th>
183            </tr>
184                <tr class="property-row inherited expandable">
185        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
186        <td class="sig">
187        <a id="Ext.layout.Accordion-activeItem"></a>
188            <b>activeItem</b> : Ext.Component            <div class="mdesc">
189                        <div class="short">
190A reference to the Ext.Component that is active.  For example,
191if(myPanel.layout.activeItem.id == 'item-1') { ... }....</div>
192            <div class="long">
193               
194A reference to the <a ext:cls="Ext.Component" href="output/Ext.Component.html">Ext.Component</a> that is active.  For example,
195if(myPanel.layout.activeItem.id == 'item-1') { ... }.  activeItem only applies to layout styles that can
196display items one at a time (like <a ext:cls="Ext.layout.Accordion" href="output/Ext.layout.Accordion.html">Ext.layout.Accordion</a>, <a ext:cls="Ext.layout.CardLayout" href="output/Ext.layout.CardLayout.html">Ext.layout.CardLayout</a>
197and <a ext:cls="Ext.layout.FitLayout" href="output/Ext.layout.FitLayout.html">Ext.layout.FitLayout</a>).  Read-only.  Related to <a ext:cls="Ext.Container" ext:member="activeItem" href="output/Ext.Container.html#activeItem">Ext.Container.activeItem</a>.            </div>
198                        </div>
199        </td>
200        <td class="msource"><a ext:cls="Ext.layout.ContainerLayout" ext:member="#activeItem" href="output/Ext.layout.ContainerLayout.html#activeItem">ContainerLayout</a></td>
201    </tr>
202            </table>
203                <a id="Ext.layout.Accordion-methods"></a>
204        <h2>Public Methods</h2>
205        <div class="no-members">This class has no public methods.</div>        <a id="Ext.layout.Accordion-events"></a>
206        <h2>Public Events</h2>
207        <div class="no-members">This class has no public events.</div>
208        </div>
Note: See TracBrowser for help on using the repository browser.