Results 1 to 10 of 10

Thread: Treelist Item Tooltip

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    58
    Answers
    2

    Default Answered: Treelist Item Tooltip

    I can't display a tooltip in a navigation treelist with a store source.

    The Ext.data.NodeInterface example shows a qtip and qtipTitle configs, but i can't make them work.

    Any clues? Thanks in advance

  2. Quote Originally Posted by landoni View Post
    Here goes:

    Code:
    https://fiddle.sencha.com/#fiddle/spk
    
    it works fine with a treepanel, but not with a treelist

    thanks again
    Hi--

    I don't think this is available out of the box. However, you could pretty easily add it by creating a custom extension of Ext.list.TreeItem and adding the qtip:

    https://fiddle.sencha.com/#fiddle/sqt

    Thanks!
    Joel

  3. #2
    Sencha Premium Member yorl1n's Avatar
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    294
    Answers
    30

    Default

    Hi,Without source code it will be difficult to find a mistake

  4. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    58
    Answers
    2

    Default

    well it's pretty straightforward... in the admin dashboard example, i add in one of the leaf nodes: qtip: 'Some tooltip'. But it doesn't show. Thanks for your reply

  5. #4
    Sencha Premium Member yorl1n's Avatar
    Join Date
    Mar 2015
    Location
    Germany
    Posts
    294
    Answers
    30

    Default

    And if you inits qtip manager?


    Code:
    Ext.tip.QuickTipManager.init();

  6. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    58
    Answers
    2

    Default

    I did it, still nothing

  7. #6
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Quote Originally Posted by landoni View Post
    I did it, still nothing
    Hi--

    Please share a code example and we'll be happy to test this along with you: https://fiddle.sencha.com

    Thanks!
    Joel

  8. #7
    Sencha User
    Join Date
    Apr 2013
    Posts
    58
    Answers
    2

    Default

    Here goes:

    Code:
    https://fiddle.sencha.com/#fiddle/spk
    
    it works fine with a treepanel, but not with a treelist

    thanks again

  9. #8
    Sencha User joel.watson's Avatar
    Join Date
    Nov 2014
    Posts
    3,120
    Answers
    446

    Default

    Quote Originally Posted by landoni View Post
    Here goes:

    Code:
    https://fiddle.sencha.com/#fiddle/spk
    
    it works fine with a treepanel, but not with a treelist

    thanks again
    Hi--

    I don't think this is available out of the box. However, you could pretty easily add it by creating a custom extension of Ext.list.TreeItem and adding the qtip:

    https://fiddle.sencha.com/#fiddle/sqt

    Thanks!
    Joel

  10. #9
    Sencha User
    Join Date
    Apr 2013
    Posts
    58
    Answers
    2

    Default

    Awesome, thanks a lot! I went for an override instead

  11. #10
    fabio.policeno's Avatar
    Join Date
    Sep 2010
    Location
    Curitiba - Brazil
    Posts
    367
    Answers
    18

    Default

    Quote Originally Posted by landoni View Post
    Awesome, thanks a lot! I went for an override instead
    Code:
    Ext.define('Overrides.list.TreeItem', {
        override: 'Ext.list.TreeItem',
    
    
        updateNode: function (node) {
            var qtip = node && node.get('qtip');
            
            this.callParent(arguments);
            qtip && this.element.dom.setAttribute('data-qtip', qtip);
        }
    });

Similar Threads

  1. Floating treelist scrollable?
    By pelojoy in forum Ext JS 6.x Q&A
    Replies: 9
    Last Post: 31 Jul 2017, 11:30 PM
  2. TreeList (Ext.list.Tree in ExtJs 6) in 4.2 ?
    By ATN in forum Ext: Discussion
    Replies: 1
    Last Post: 27 Oct 2016, 5:28 AM
  3. ActionColumn - Item Tooltip = Item Icon URL?
    By Steve_Terry in forum Ext: Q&A
    Replies: 10
    Last Post: 12 Apr 2012, 7:50 PM
  4. Howto: TreeList
    By insnet in forum Ext 2.x: Help & Discussion
    Replies: 9
    Last Post: 2 Jun 2008, 8:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •