Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    delete the highest tab only in tabSet

    hye..how can i delete the last tab in tabSet?? only the last tab..

    in the example given, i can only delete the first tab only..

    can u show me how to do it?

    tq.

    #2
    This example is removing the last tab each time you click "Remove Tab".

    Comment


      #3
      In this case..im using the menu button at selected tab to delete the tabs.
      This is the code :

      Code:
      //MENU FOR TAB LEVEL
      		isc.Menu.create({
      		    ID:"mnuLevelTab",
      		    items:[
      		    	
      		       	{title:"Delete Level", 
      		       	icon: "/iSCADA/config/images/close.png",
      		       //click:"isc.warn('Delete Level')"
      				click:function (target) {
      						
          					  	var levelNo = target.ID;
          					  	//if (tabsLevel.getSelectedTab() == tabsLevel.tabs.length-1){
      	    					  	deleteLevelFrSection(target.title);
      	    					  	tabsLevel.removeTab(target);
      	    					  	tabsLevel.selectTab(0);
      	    					  	deleteLevel(levelNo);
      	    					  	
          						//}
          						return false;
          				}
      		       }
      		    ]
      		});
      From here, how can i do to make sure juz the last tab can appear the delete menuButton? and other tabs are not allowed. Tq.

      Comment

      Working...
      X