Hello,
Maybe you can help me with a (beginner) problem:
I am trying to insert a formpanel/fieldset into a Carousel card. The carousel itself works, but the first page of the carousel,where i would like to insert the formpanel, is just empty.
The debug console doesn't show any error.
Maybe somebody can point me to the problem :-)
Code:
Ext.define('ha2.view.Main', { extend : 'Ext.tab.Panel',
requires : [ 'Ext.TitleBar', 'Ext.carousel.Carousel', 'Ext.form.FieldSet', 'Ext.form.Panel' ],
config : {
tabBarPosition : 'bottom',
items : [ {
title : 'Home',
iconCls : 'home',
cls : 'cards',
defaults : {
flex : 1
},
layout : {
type : 'vbox',
align : 'stretch'
},
items : [ {
docked : 'top',
xtype : 'titlebar',
title : 'MyHome'
}, {
xtype : 'carousel',
items : [ {
cls : 'card',
title: 'Test1',
iconCls: 'home',
items: [{
/* This part is not displayed, just an empty page is shown */
title: 'Basic',
xtype: 'formpanel',
iconCls: 'refresh',
items: [{
xtype: 'fieldset',
title: 'Info',
instructions: 'Please enter info below',
defaults: {
labelWidth: '35%'
},
items: [{
xtype: 'checkboxfield',
name: 'on',
label: 'On',
value: 'on',
}]
}]
}]
}, {
cls : 'card',
html : 'Test2'
} ]
} ]
},
{
title : 'Settings',
iconCls : 'settings',
items: [{
docked : 'top',
xtype : 'titlebar',
title : 'Settings'
}]
}]
}
});