Using the AI generated script to turn the title bold when I click into the tab
if (getAppVar("setActiveTab") === "2") {
// Get the Tabpanel container for the SOEditScreen widget
var tabPanelContainer = getWidget("SOEditScreen");
var tabPanel = tabPanelContainer.down("#uicomponent");
// Assuming the tab index is zero-based and we want the second tab (index 1)
var tab = tabPanel.getComponent(1);
// Remove any existing <b> tags from the title to avoid nested bold tags
var originalTitle = tab.title.replace(/<\/?b>/g, "");
// Set the title to bold HTML
tab.setTitle("<b>" + originalTitle + "</b>");
}
success();?
it doesn't seem to work.
I use buttons to navigate from tab to tab. In this case navigating from tab 1 to tab 2 did not set the title to bold.
image.png?
thoughts/suggestions?
if (getAppVar("setActiveTab") === "2") {
// Get the Tabpanel container for the SOEditScreen widget
var tabPanelContainer = getWidget("SOEditScreen");
var tabPanel = tabPanelContainer.down("#uicomponent");
// Assuming the tab index is zero-based and we want the second tab (index 1)
var tab = tabPanel.getComponent(1);
// Remove any existing <b> tags from the title to avoid nested bold tags
var originalTitle = tab.title.replace(/<\/?b>/g, "");
// Set the title to bold HTML
tab.setTitle("<b>" + originalTitle + "</b>");
}
success();?
it doesn't seem to work.
I use buttons to navigate from tab to tab. In this case navigating from tab 1 to tab 2 did not set the title to bold.
image.png?
thoughts/suggestions?

Comment