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).
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.
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?
“Default” mode with active button is essentially “radio” mode. Would it not be appropriate in your scenario?
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?
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.
You must be logged in to reply to this topic.