How to close the tab?

  1. #1

    How to close the tab?

    hi all,
    https://examples1.ext.net/#/ViewPort...uilt_in_Markup
    now I have a button in the 'Close Me' TAB ,how to click the button close the current tab?

    thx.
  2. #2
    Hi,

    All you require is the client-side id of the Tab, the call the .close() function.

    Example

    Panel1.close(); // client-side JavaScript
    
    Panel1.Close(); // server-side
    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Close Tab
    By majunior in forum 1.x Legacy Premium Help
    Replies: 28
    Last Post: May 24, 2011, 3:35 PM
  2. how to close the tabpanel's tab?
    By zg_ivan in forum 1.x Help
    Replies: 2
    Last Post: Dec 13, 2010, 5:25 AM
  3. Modify Tab/Close Tab & Close Other Tab
    By Smary in forum 1.x Help
    Replies: 7
    Last Post: Nov 05, 2010, 3:11 AM
  4. Can a Tab close itself from TabPanel?
    By ydnah2 in forum 1.x Help
    Replies: 2
    Last Post: Aug 10, 2009, 7:17 AM
  5. close window
    By fren21 in forum 1.x Help
    Replies: 4
    Last Post: Jul 03, 2009, 3:47 AM

Tags for this Thread

Posting Permissions