Results 1 to 3 of 3

Thread: "qtip" not displaying for TextButton

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    22
    Vote Rating
    0
      0  

    Default "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
      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 User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      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.

Posting Permissions

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