end-user
6 Aug 2007, 8:33 AM
I cannot get an auto-created (no markup) accordion to display properly. Firebug shows the object is created, but I can't get it to be visible/active. ~o) Can you give me a quick example? Is there any API documentation on these [Accordion/InfoPanel] extensions?
<div id="accordion" style="width:400px;"></div>
<script>
// Ext Accordion Application
Ext.BLANK_IMAGE_URL = '../extjs/resources/images/default/s.gif';
var panel
Ext.onReady(function() {
// create accordion
panel = new Ext.ux.Accordion('acc-ct', {
fitHeight: true
})
panel.add(new Ext.ux.InfoPanel({
title: "6. Auto-created panel, no markup"
, id:"ipanel-6"
//, desktop: 'panels-tab'
, draggable: true
, useShadow: true
, autoCreate: {
tag:'div'
, children:[{
tag:'div'
, cls:'text-content'
, html: "Message goes here"
}]
}
}))
});
// end of file
</script>
<div id="accordion" style="width:400px;"></div>
<script>
// Ext Accordion Application
Ext.BLANK_IMAGE_URL = '../extjs/resources/images/default/s.gif';
var panel
Ext.onReady(function() {
// create accordion
panel = new Ext.ux.Accordion('acc-ct', {
fitHeight: true
})
panel.add(new Ext.ux.InfoPanel({
title: "6. Auto-created panel, no markup"
, id:"ipanel-6"
//, desktop: 'panels-tab'
, draggable: true
, useShadow: true
, autoCreate: {
tag:'div'
, children:[{
tag:'div'
, cls:'text-content'
, html: "Message goes here"
}]
}
}))
});
// end of file
</script>