2 Attachment(s)
[CLOSED] How can I add one item "Refresh" to the tab context menu?
I have a TabPanel Control in page. Each tab has a context menu with three items: Close Tab, Close Other Tabs, Close All Tabs.
How can I add one item "Refresh" to the tab context menu?
And How can I fire the "Refresh" event and refresh the tab content page?
Thanks for your answer.
Attachment 6762
Hi, I have solved the problem.
Code:
<ext:ConfigItem Name="extraItemsTail" Value="[
{
text: 'Refresh,
listeners: {
click: function() {
var currtab = App.TabPanel_Content.getActiveTab();
if( currtab.title == 'Main' )
{
App.direct.RefrushPortal();
}
else
{
currtab.loader.load();
}
}
}