gs_user
Aug 20, 2012, 8:34 AM
Hi,
I use setTheme to change theme, click tree node dynamic add tab
the tab theme not same with parent tab.
How to resolve it??
The code was add tab dynamic.
How to get theme and set the tabpanel the same theme?
<script type="text/javascript">
var addTab = function (tabPanel, record) {
if (record.isLeaf()) {
var tab = tabPanel.getComponent(record.getId());
if (!tab) {
tab = tabPanel.add({
id: record.getId(),
title: record.get('text'),
closable: true,
loader: {
url: record.getId(),
renderer: "frame",
loadMask: {
showMask: true,
msg: "Loading " + record.get('text') + "..."
}
}
});
}
tabPanel.setActiveTab(tab);
}
}
I use setTheme to change theme, click tree node dynamic add tab
the tab theme not same with parent tab.
How to resolve it??
The code was add tab dynamic.
How to get theme and set the tabpanel the same theme?
<script type="text/javascript">
var addTab = function (tabPanel, record) {
if (record.isLeaf()) {
var tab = tabPanel.getComponent(record.getId());
if (!tab) {
tab = tabPanel.add({
id: record.getId(),
title: record.get('text'),
closable: true,
loader: {
url: record.getId(),
renderer: "frame",
loadMask: {
showMask: true,
msg: "Loading " + record.get('text') + "..."
}
}
});
}
tabPanel.setActiveTab(tab);
}
}