jQWidgets Forums

jQuery UI Widgets Forums Editors Button, RepeatButton, ToggleButton, LinkButton jqxButtonGroup – title attribute not working

This topic contains 2 replies, has 3 voices, and was last updated by  grase73 2 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author

  • mbmleone
    Participant

    Hello jQWidgets team,

    We are currently working with newest release and noticed something with jqxButtonGroup.
    When we use the jqxButtonGroup the “title” attribute is not working.
    That attribute should give a tooltip for buttons (and many other HTML-elements).
    It does work correctly for normal html-buttons and jqxButton, but not in jqxButtonGroup.
    A example of the difference can be seen here:
    http://jsfiddle.net/musicreader/zf0d6o93/1/
    To see it simply place the mouse over the button.

    This is a problem for us as we use jqxButtonGroup a lot.
    And creating custom tooltips is really not usable for us.
    We need the “title” attribute to work as it should.

    Could you please fix this?
    It seems like a small fix, most likely the attribute only gets stripped somewhere.

    Thanks!

    Best regards,
    Marco


    Peter Stoev
    Keymaster

    Hi Marco,

    During the initialization process, we modify the DOM by adding new elements, removing elements, styling them, etc. It’s like a template which we process to make the component. In this scenario, after the component is initialized you can set its ‘title’ attribute.

    You can set it after the initialization of the Button Group UI Component:

    $("#bg").jqxButtonGroup({ mode: 'radio', enableHover: true});
    $("#b1").jqxButton({});
    
    $("#bg").children()[0].title = "test";

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com


    grase73
    Blocked

    Thank you, I couldn’t figure it out, so I found the answer here

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.