Results 1 to 2 of 2

Thread: update treenode qtip

  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    447
    Vote Rating
    0
      0  

    Arrow update treenode qtip

    treenode qtip is given at creation by qtip: 'somthing',
    i can read treenode.attributes.qtip into a string, but how can I update qtip text?

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    Use:

    Code:
    if(node.ui.textNode.setAttributeNS){
        node.ui.textNode.setAttributeNS("ext", "qtip", 'another tip');
    }else{
        node.ui.textNode.setAttribute("ext:qtip", 'another tip');
    }
    or, if you use qtipCfg:{text:'tip'} instead of qtip:'tip':

    Code:
    Ext.QuickTips.getQuickTip().targets[node.ui.textNode.id].text = 'another tip';

Posting Permissions

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