Questions tagged [buttongroup]

buttongroup refers to bootstrap button groups. A button group is a series of buttons grouped together either horizontally or vertically by a parent element with the role group and the class btn-group.

refers to bootstrap button groups. A button group is a series of buttons grouped together either horizontally or vertically by a parent element with role="group" and class="btn-group".

Button groups is supported in all versions of bootstrap. Example :

<div class="btn-group" role="group" aria-label="Basic example">
  <button type="button" class="btn btn-secondary">Left</button>
  <button type="button" class="btn btn-secondary">Middle</button>
  <button type="button" class="btn btn-secondary">Right</button>
</div>

Recent documentation :
http://getbootstrap.com/components/#btn-groups (bootstrap 3)
http://v4-alpha.getbootstrap.com/components/button-group/ (bootstrap 4)

205 questions
2
votes
1 answer

Change the contents on button tap in button group bootstrap

I want to to change the contents below of button group on tap of every button in button group.
2
votes
4 answers

How to get value of selected radioButton of buttonGroup

How to get value of selected radioButton? I tried using buttonGroup1.getSelection().getActionCommand() (as posted in some of answers here) but it is not working. Also, i am temporarily using this code but i want to know is this a good practice or…
Malwinder Singh
  • 6,644
  • 14
  • 65
  • 103
2
votes
3 answers

How to make single choice button in android?

I am a newbie of android programming and trying to make a single choice button group. For example, There are 3 buttons in my application and when one button is clicked, the others should be unclicked and uncolored. How can I make this in effective…
2
votes
1 answer

button-group in horizontal and vertical

I want resposive view of buttons in bootstrap. Like that: [button1] [button3] [button5] [button2] [button4] [button6] and on phone: [button1] [button2] [button3] [button4] [button5] [button6] As user clicked in one button it should be set to…
2
votes
1 answer

Bootstrap nested button groups with radiobutton behavior

Using Twitter Bootstrap, I have a button group with several sets of buttons. Some of these buttons have dropdowns. I would like this button group to have radiobutton-style behavior, as per radio in bootstrap's JavaScript button section. Here's my JS…
Jack Guy
  • 8,346
  • 8
  • 55
  • 86
2
votes
3 answers

Can a JRadioButton be in several ButtonGroups?

I'm trying to set up a JRadioButton-Matrix, so that in each column and in each row, only one Button can be selected at a time. I have the following code: JRadioButton[][] button = new JRadioButton[names.length][names.length]; ButtonGroup[] r = new…
Zuerill
  • 21
  • 2
2
votes
2 answers

Prevent switch from a specifc toggle button in button group unless a condition is met

I'd like to create a group of two buttons (A and B), where switching from B to A is always allowed, but switching from A to B is dependent on a condition. The condition may only be checked in the latter case (A to B) and the check may only be done…
predi
  • 5,528
  • 32
  • 60
2
votes
2 answers

How to select multiple JCheckBoxe into ButtonGroup?

I have three JCheckBox like following: final JCheckBox c1 = new JCheckBox("A"); final JCheckBox c2 = new JCheckBox("B"); final JCheckBox c3 = new JCheckBox("C"); I make a group by ButtonGroup for this checkboxes like following: final ButtonGroup bg…
Samiey Mehdi
  • 9,184
  • 18
  • 49
  • 63
2
votes
0 answers

Python uic.loadUi doesnt recongise button group

I have previously use the following steps to load PyQt ui into python. 1.Use designer to create the ui file 2.Go to dos and use pyuic4 to convert the ui files into python(MyQtUI.py) 3.Import in the python files from MyQtUI import…
Reinhart
  • 31
  • 3
2
votes
2 answers

Handling large number of Swing components

I'm doing a favor for an engineer friend by making him a program that helps him with the scheduling of his factory's production. Each type of product is broken down to a set of steps (they share a lot of them, but there are a few differences). The…
István Kohn
  • 135
  • 8
2
votes
1 answer

How to add JRadioButton to two columuns of a JTable and ButtonGroup them.

I want a JTable which consists of 2 columns(having RadioButton) Active and Inactive such that if Active Column is Selected then Inactive RadioButton gets Unselected and Vice versa means that in a single row only 1 radiobutton can be selected out…
user1760166
  • 89
  • 2
  • 8
2
votes
1 answer

Multiple QButtonGroups in one window

I'm programming a wizard with PyQt. On the first page I want to give the user the choice to choose two times between two options. Therefore I decided to make to Buttongroups. But though I added the first two radio buttons to the first Buttongroup…
2
votes
2 answers

Working with radio button in java

I've two jRadioButtons in Java application. Let's say Male and Female. Initially one is selected. While selecting another, the previous should be unselected and vice-versa. How to make it work? Also how can it be used to store in database?
Pradip Kharbuja
  • 3,442
  • 6
  • 29
  • 50
2
votes
1 answer

Changing Ext JS Panel's background style to that of Buttongroup's

In Ext JS 4.1.1, how can I change the background of a panel xtype? What I want to achieve is that the background of panel should look like the one of buttongroup.
Kabeer
  • 4,138
  • 7
  • 40
  • 62
2
votes
1 answer

Replacing ButtonGroupPanel from com.symantec.itools.javax.swing package

I am migrating 'Java Swing' code from 'Java Visual Cafe' JDK1.2 to 'Eclipse SDK6'. In Visual Cafe it has code is like this: public Sample extends JPanel(){ ..... package com.symantec.itools.javax.swing.JButtonGroupPanel bgAcc = new…
Hanuman
  • 23
  • 4