1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    22
    Vote Rating
    0
    hrishirise is on a distinguished road

      0  

    Default "qtip" not displaying for TextButton

    "qtip" not displaying for TextButton


    I am trying to add "qtip" directly to the element.By using "getElement().setAttribute", does not work.
    **In Firebug, I do see the "qtip" attribute attached to the DIV element, but, when i hover over Button, nothing happens. Any ideas ?

    TextButton shadowButton = new TextButton(DMCTextConstants.INSTANCE.shadowButtonLabel());
    shadowButton.enable();
    shadowButton.getElement().setAttribute("qtip","hello");

  2. #2
    Sencha User PhiLho's Avatar
    Join Date
    Nov 2011
    Location
    Near Paris, France
    Posts
    140
    Vote Rating
    1
    PhiLho is on a distinguished road

      0  

    Default


    I didn't know what a qtip was (in GWT at least... ), so I searched, and it seems you have to create an instance of QuickTip attached to your component.

  3. #3
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,733
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Correct PhiLho - but it can also be applied to any parent of the dom element that has the qtip attribute. This allows creating only one QuickTip for a single form, or window, which has tradeoffs either way.

    Make one QuickTip if you expect many/most elements to be hoverable, and don't want to pay the cost of creating many instances, and having many things watching mouse events over the app. Make several if you can pin down where exactly the events will occur, as to not catch events in parts of the app where no quick tip is possible.

Thread Participants: 2