jQuery UI Widgets Forums General Discussions Mass init of jqxButtons

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 8 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Mass init of jqxButtons #91483

    CBuntrock
    Participant

    Hi everyone,

    is it dangerous to init many buttons at once using a class? All examples on the getting started guide do init each instance using the ID of the element. However, I have many buttons that should look all the same but should do different things of course. My first test looked fine. Giving different event handlers seems to work. However, I don’t want to risk problems later on by doing something that is not supported (maybe the ID of the element is used when initializing the button).

    Thanks!!
    Best,
    Christian

    Mass init of jqxButtons #91517

    Hristo
    Participant

    Hello Christian,

    Yes, you could use this approach (using a class) if it is appropriate for you.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.