jQuery UI Widgets › Forums › General Discussions › Editors › Button, RepeatButton, ToggleButton, LinkButton › ButtonGroup toggle
Tagged: active, Button, button group, buttongroup, default, getSelection, jqxbuttongroup, radio, select, selection, toggle
This topic contains 5 replies, has 2 voices, and was last updated by Dimitar 12 years ago.
-
AuthorButtonGroup toggle Posts
-
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).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,
DimitarjQWidgets team
http://www.jqwidgets.com/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?
Hi Makla,
“Default” mode with active button is essentially “radio” mode. Would it not be appropriate in your scenario?
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/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?
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,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.