1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    447
    Vote Rating
    0
    mxu is on a distinguished road

      0  

    Arrow update treenode qtip

    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
    97
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      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';

Thread Participants: 1