| Summary: Ext Accordion Widget and InfoPanel |
| Author: Jozef Sakalos |
| Published: June 14, 2007 |
| Version: 1.0.1 |
| Ext Version: 1.1 |
| License: LGPLv3 |
| Demo Link: View Demo |
| Forum Post: View Post |
Contents |
The InfoPanel widget is a (small) window that can be collapsed when only the title bar is visible or expanded. It can be embedded in a web page or it can have window-like behavior: floating above the content, draggable, resizable.
Accordion groups panels together making them aware of each other. Expand one, another collapses. Panels can be reordered within Accordion by drag & drop or can be moved out. Accordion can be placed in a layout, in a dialog or it can be embedded in page content.
InfoPanel can have virtually any content even dynamically loaded by Ajax calls from the server. It is suitable for any information that is not necessarily visible at all times, like:
Ext.onReady(function() { // create panel var panel = new Ext.ux.InfoPanel('panel-container', { icon: '../icons/home.png' }); });
Consult the documentation in the source code for other configuration options.
Ext.onReady(function() { // create accordion var accordion = new Ext.ux.Accordion('accordion-container', { fitHeight: true }); // create and add panel 1 var panel1 = accordion.add(new Ext.ux.InfoPanel('panel1-container', { icon: '../icons/wrench.png' })); });
Consult the documentation in the source code for other configuration options.