This topic contains 5 replies, has 2 voices, and was last updated by  Dimitar 10 years, 11 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • ButtonGroup toggle #47107

    Makla
    Participant

    Can I use ButtonGroup and Toggle together? If yes, how?
    I want to use ButtonGroup for activating different preselected filters, but I don’t know which one is selected(active) right now.
    It would be nice, if active button in ButtonGroup would have different style (toggled, or pressed).

    ButtonGroup toggle #47125

    Dimitar
    Participant

    Hello Makla,

    There are three different modes of the button group widget: “default”, “radio” and “checkbox”. You can see them in action in the demo Button Group. You can get the active button(s) only when the mode is “checkbox” or “radio” with the method getSelection. If the mode is “checkbox” or “radio”, there is a visual indication of the active button(s), but not if the mode is “default”, because there is no active button in that case.

    Please refer to the jqxButtonGroup API Documentation (fourth tab) for more information.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    ButtonGroup toggle #47168

    Makla
    Participant

    I know that. I read your documentation more often then I eat. 🙂
    I just want to use default mode, because it more suit my needs.

    Right now I am using jqxTabs with collapsible: true, where every content is empty, but this is cheating.

    There must be some way?

    ButtonGroup toggle #47170

    Dimitar
    Participant

    Hi Makla,

    “Default” mode with active button is essentially “radio” mode. Would it not be appropriate in your scenario?

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    ButtonGroup toggle #47255

    Makla
    Participant

    I don’t like the idea to use radio.
    I will stick with jqxTabs and collapsible: true.

    But it would be a nice feature to have.

    Is there any way I can change css style of the selected button?

    ButtonGroup toggle #47278

    Dimitar
    Participant

    Hi Makla,

    Just to make things clear in case you have misunderstood me – I suggest you use the “radio” behaviour mode of jqxButtonGroup and not jqxRadioButton.

    As for your question – the “default” mode does not have an active button and thus you cannot apply any CSS to it.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.