1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    15
    Vote Rating
    0
    lethalpunch is on a distinguished road

      0  

    Default Unanswered: Box Component, dynamic tool tip

    Unanswered: Box Component, dynamic tool tip


    hey guyz i want to add a dynamic tooltip in my box component that changes with the change of its parent name.
    please help..
    thanx in advance

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,332
    Answers
    124
    Vote Rating
    83
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      1  

    Default


    Hi,
    You can add dynamic tooltip to any item by creating new instance of Ext.ToolTip class. You just need to define the target & html config of the instance according to your self.As you said that you want to change the tooltip of any box component on that's parent value change. After that you can call a function to change the tooltip. Review the following code:

    Code:
    function changeTooltip(){
      var boxCmp = Ext.getCmp('id-of-boxCmp');
      if(boxCmp){
         (boxCmp.tooltip){     // if already any tooltip added than first remove that
           boxCmp.tooltip.destroy();
         }
         // then add new tooltip
         boxCmp.tooltip = new Ext.ToolTip({         
             target: 'id-of-boxCmp'
             , html: 'this is dynamic tooltip'
          })
      }
    }
    Last edited by sword-it; 1 Mar 2013 at 9:38 AM. Reason: code formatting
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha User
    Join Date
    Nov 2012
    Posts
    15
    Vote Rating
    0
    lethalpunch is on a distinguished road

      0  

    Default thanxs

    thanxs


    It resolved my prob.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar