jQWidgets Forums

jQuery UI Widgets Forums Angular jqxButtonGroup

This topic contains 1 reply, has 2 voices, and was last updated by  Martin 6 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxButtonGroup #101968

    tihomir
    Participant

    Hi,

    How to check if the button is check or not inside jqxButtonGroup? Button checking is the same if jqxButtonGroup’s mode is “radio” or mode is “checkbox”?

    <jqxButtonGroup [mode]=”‘radio'”>
    <button id=’Left’ value=’Left’></button>
    <button id=’Center’ value=’Center’></button>
    <button id=’Right’ value=’Right’></button>
    </jqxButtonGroup>

    <jqxButtonGroup [mode]=”‘checkbox'”>
    <button id=’Left’ value=’Left’></button>
    <button id=’Center’ value=’Center’></button>
    <button id=’Right’ value=’Right’></button>
    </jqxButtonGroup>

    jqxButtonGroup #101979

    Martin
    Participant

    Hello tihomir,

    jqxButtonGroup has the method getSelection.
    It gets the index or indexes of the selected button(s).
    It returns the index of the selected button when the “mode” property is set the “radio” and returns an array of the selected buttons when the “mode” property is set to “checkbox”.

    You can see it in this Example.

    Best Regards,
    Martin

    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.