I have Panel with a BottomToolbar
. I want to add and remove dynamically a checkbox/checkboxgroup
or radio/radiogroup
. I saw that we have the method addItem
for Ext.Toolbar
but the checkbox doesn't extends Item... Is there a way to accomplish this?
A preview of my code and what I want to achieve:
var myCheckboxGroup = new Ext.form.CheckboxGroup({
id:'displayParamCheckGroup',
xtype: 'checkboxgroup',
columns: 1,
items: checkboxArray
});
Ext.getCmp('siteChartPanel').getBottomToolbar().add(myCheckboxGroup);
You have forgotten to call doLayout() method after adding:
Ext.getCmp('siteChartPanel').getBottomToolbar().doLayout();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.