1. #1
    Ext User
    Join Date
    Aug 2008
    Posts
    24
    Vote Rating
    1
    liuzhisheng is on a distinguished road

      0  

    Question How to set the tabtip of tabpanel when the title of tabpanel is changed?

    How to set the tabtip of tabpanel when the title of tabpanel is changed?



  2. #2
    Ext User santosh.rajan's Avatar
    Join Date
    Sep 2007
    Location
    Kannur, Kerala, India
    Posts
    611
    Vote Rating
    0
    santosh.rajan is on a distinguished road

      0  

    Default


    Try this
    tabpanel.on('titlechange', function(panel) {
    Ext.fly(panel.getEl()).child('span.x-tab-strip-text', true).qtip = "New Tab tip text";
    });
    Make everything as simple as possible, but not simpler.
    - Albert Einstein

  3. #3
    Ext User
    Join Date
    Aug 2008
    Posts
    24
    Vote Rating
    1
    liuzhisheng is on a distinguished road

      0  

    Question


    thanks, but Ext.fly(panel.getEl()).child('span.x-tab-strip-text', true) is undefined?
    Quote Originally Posted by santosh.rajan View Post
    Try this
    tabpanel.on('titlechange', function(panel) {
    Ext.fly(panel.getEl()).child('span.x-tab-strip-text', true).qtip = "New Tab tip text";
    });

  4. #4
    Ext User santosh.rajan's Avatar
    Join Date
    Sep 2007
    Location
    Kannur, Kerala, India
    Posts
    611
    Vote Rating
    0
    santosh.rajan is on a distinguished road

      0  

    Default


    I have not tried it. But I hope you get the idea. Go through firebug and have a look at the structure of the dom created. Hint: search for x-tab-strip-text in the dom. And rewrite the call accordingly. The idea here is to get hold of that element with css x-tab-strip-text and set its qtip text.
    Make everything as simple as possible, but not simpler.
    - Albert Einstein

  5. #5
    Ext User
    Join Date
    Jul 2009
    Posts
    3
    Vote Rating
    0
    tracker1 is on a distinguished road

      0  

    Talking setTabTip method for Ext.Panel

    setTabTip method for Ext.Panel


    //extend Ext.Panel to have a setTabTip method
    Ext.Panel.prototype.setTabTip = function(msg) {
    var tabPanel = this.findParentByType(Ext.TabPanel);
    if (tabPanel) {
    var tabEl = Ext.fly(tabPanel.getTabEl(this).id);
    if (tabEl) {
    var tsTxt = tabEl.child('span.x-tab-strip-text', true);
    if (tsTxt)
    tsTxt.qtip = msg.toString();
    }
    }
    }

Thread Participants: 2

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