Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Using setHint on a DynamicForm will not display hint on Label

    Using a DynamicForm with StaticFormItems,
    the hint will only be displayed, when

    a) there is a value in it
    b) when you move the mouse cursor over the value field.
    If you move the mouse over the title for the first time,
    the hint will not be displayed, but after you moved the mouse over the
    value item.

    Can you fix this, please ?

    #2
    What browser are you seeing this in, what are your exact versions, and how are you supplying the hover/hint (what API?)

    Comment


      #3
      Hi,

      using code
      StaticFormItem item = new StaticFormItem();
      item.addItemHoverHandler(new ItemHoverHandler() {
      @Override
      public void onItemHover(ItemHoverEvent event) {
      String tooltip = "my tooltip";
      item.setPrompt(tooltip);
      }
      });

      Seeing in Browsers:
      Firefox 3.7, 4.0
      IE 8.0

      Comment


        #4
        You don't need a hover handler to set the prompt (tooltip) on an item.
        Code:
        StaticTextItem item = new StaticTextItem();
        item.setPrompt("my tooltip");
        If you need a dynamic tooltip, see setItemHoverFormatter().

        Comment


          #5
          This solved my problem.
          Thanks.

          Maybe it's helpful to change examples from showcase to use the suggested methods instead of itemhoverhandler

          Comment

          Working...
          X