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

      0  

    Question Unanswered: How to make a tooltip for text item in toolbar?

    Unanswered: How to make a tooltip for text item in toolbar?


    Hello,

    Can anyone help me understand why text items in toolbar (xtype tbtext') don't care about tooltip field? Normal buttons do. So how can I attach a tooltip to a text item in toolbar?

    Thanks,
    Yury

  2. #2
    Sencha User
    Join Date
    Dec 2010
    Posts
    46
    Vote Rating
    0
    navvn is on a distinguished road

      0  

    Default


    name should look like:

    <span data-qtip="your tooltip">text</span>

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
    voronov is on a distinguished road

      0  

    Default


    It does not work too. Sorry.

  4. #4
    Sencha User
    Join Date
    Sep 2009
    Posts
    85
    Answers
    8
    Vote Rating
    -1
    raz0r1 is an unknown quantity at this point

      0  

    Default


    try using
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.toolbar.TextItem-cfg-tpl
    with
    http://docs.sencha.com/ext-js/4-0/#!/api/Ext.XTemplate

    y
    ou also have to call
    Code:
    Ext.QuickTips.init();
    on time in your application

    (without code example its hard to help you)

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
    voronov is on a distinguished road

      0  

    Default


    Code is simple:
    Code:
    var tbar = [];
    tbar.push(
        {xtype:'tbtext', text: "Some Zoom", tooltip: 'Some Tooltip' },
        {iconCls:'zoom_minus', tooltip:'Zoom Out', scope:this, handler:function() { this.m_ZoomOP = 'button'; this.zoomOut();}},
        {iconCls:'zoom_plus', tooltip:'Zoom In', scope:this, handler:function() { this.m_ZoomOP = 'button'; this.zoomIn();}}
    );
    This 'tbar' is used when panel is created.

    The last two elements are buttons, and they have tooltips. The first element is text and no tooltip appeared.

  6. #6
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,573
    Answers
    540
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    Can you confirm that you are using ExtJS 4?

    The following works for me:

    Code:
    Ext.tip.QuickTipManager.init();
    
    Ext.create('Ext.panel.Panel', {
        height: 300,
        renderTo: Ext.getBody(),
        width: 300,
        tbar: [{
            text: '<span data-qtip="Hello">Text</span>',
            tooltip: 'Hello',
            xtype: 'tbtext'
        }]
    });

  7. #7
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
    voronov is on a distinguished road

      0  

    Default


    Nope. We are still using 3.x. Is it known bug for that version?

  8. #8
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,573
    Answers
    540
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    This is an ExtJS 4 forum. Please post in the right forum in future, it'll save people wasting time giving you advice for the wrong version.

    In ExtJS 3 it'd be this:

    Code:
    Ext.QuickTips.init();
    
    new Ext.Panel({
        height: 300,
        renderTo: Ext.getBody(),
        width: 300,
        tbar: [{
            text: '<span ext:qtip="Hello">Text</span>',
            tooltip: 'Hello',
            xtype: 'tbtext'
        }]
    });

  9. #9
    Sencha User
    Join Date
    Aug 2011
    Posts
    5
    Vote Rating
    0
    voronov is on a distinguished road

      0  

    Default


    Oops! Sorry for misplacement. Thanks for advice, though

Thread Participants: 3

Tags for this Thread

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