1. #1
    Sencha User
    Join Date
    Aug 2007
    Posts
    32
    Vote Rating
    0
    attiato is on a distinguished road

      0  

    Default [Solved] Window, remove close button from header

    [Solved] Window, remove close button from header


    I didn't find a solution for this!
    Is there a way to remove the close button from the window header?
    I tried to remove the header from the window with header:false, but it didn't work.

  2. #2
    Sencha User
    Join Date
    Aug 2007
    Posts
    32
    Vote Rating
    0
    attiato is on a distinguished road

      0  

    Default I made it!!!

    I made it!!!


    i found the solution.
    Code:
    win.tools.close.setStyle({display:"none"});

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    If you looked at the Window API doc, you might see the closable:false config.

  4. #4
    Sencha User
    Join Date
    Aug 2007
    Posts
    32
    Vote Rating
    0
    attiato is on a distinguished road

      0  

    Default


    it was not that i wanted to disable closing for the window tryanDLS, i just wanted to ad a custom exit buton, that has to do some stuff before closing. I didn't find any way of redefining the function for that button on close, so i made it hidden, and add another one. BTW i found that this can be done like this too: win.tools.close.hide();

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    1
    Vote Rating
    0
    jpcatubig is on a distinguished road

      0  

    Default


    Quote Originally Posted by attiato View Post
    i found the solution.
    Code:
    win.tools.close.setStyle({display:"none"});
    Where will you apply this solution????

  6. #6
    Sencha User
    Join Date
    May 2010
    Location
    Earth
    Posts
    5
    Vote Rating
    0
    topgun743 is on a distinguished road

      0  

    Default


    This can also be specified right in Window object's "tool" config option:

    tools: [{
    id:'close',
    hidden: true,
    handler: function(e, target, panel){
    //panel.ownerCt.remove(panel, true);
    }
    }]

  7. #7
    Sencha User UnuS76's Avatar
    Join Date
    Aug 2013
    Posts
    3
    Vote Rating
    0
    UnuS76 is on a distinguished road

      0  

    Default Issue

    Issue


    Guys, when i apply this code, it's adding another toolbar, and a hidden button 'close'.

  8. #8
    Sencha User UnuS76's Avatar
    Join Date
    Aug 2013
    Posts
    3
    Vote Rating
    0
    UnuS76 is on a distinguished road

      0  

    Default


    I found the solution. Add this code in the header section ov view code.
    closable: false
    for example after title. It's working for me.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi