Hello,
I have a tabpanel and want to set the border to “Title” and fill the “border title text” with a database value. I can’t find a property like “title text” on the tabpanel to change the title at runtime. How can I set the title at runtime?
You can change the border title as well as the other attributes by simply setting them through the ‘elements’ object. You have to enter the values in the correct order. (as shown in the tabpanel property editor)
var _newBorderName = foundset.myDataprovider ;
elements.myTabPanel.border = 'TitledBorder,' + _newBorderName + ',' + SM_TITLEJUSTIFICATION.CENTER + ',' + SM_TITLEPOSITION.BELOW_BOTTOM + ',Times New Roman,1,12' ;
As shown above you can use the ‘SM_TITLEJUSTIFICATION.XXX’ and ‘SM_TITLEPOSITION.XXX’ constants as well - or just hard code the changes you want in the string.
I see. Many thanks