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
7
votes
1 answer

Multiple grouped dropdown buttons in a row with Twitter Bootstrap 2.x

It there an easy way to get button dropdowns grouped like button-groups with Twitter Bootstrap? This code
6
votes
2 answers

Increment and Decrement button via Material UI ButtonGroup

I want to create a increment / decrement button with material ui ButtonGroup. the button is like this image at first. When user clicked on the button, the second part of ButtonGroup will show (Like Image Below). how can I achieve this? Please…
Sasan Rasouli
  • 73
  • 1
  • 1
  • 5
6
votes
2 answers

Disable group of radio buttons

I have a group of radio buttons defined as 'ButtonGroup bg1;' using 'javax.swing.ButtonGroup' package. I would like to disable this group so that the user cannot change their selection after clicking the OK-button 'btnOK'. So I was looking for…
Christian
  • 991
  • 2
  • 13
  • 25
5
votes
3 answers

setSelected a specific jradiobutton in a buttongroup based on action command

i want to setSelected a speicfic jradiobutton in a buttongroup based on the actionCommand(/name of the specific jradiobutton). it could be done usind .setSelected(true) for example, JRadioButton rabbitButton = new JRadioButton("rabbit"); …
Neon Shri
  • 51
  • 1
  • 1
  • 3
5
votes
5 answers

Jquery UI and Bootstrap button conflict

I'm having a problem with button groups for bootstrap. Right now I have jquery ui js called before bootstrap js and the button gorup works fine. However, if i keep this structure, jquery ui dialog buttons do not work, specifically the close button…
TheNameHobbs
  • 679
  • 7
  • 21
  • 36
5
votes
1 answer

get selected radio button list in swing

Im going to create multiple choice question application using java swing.I have created swing class with list of radio buttons inside separate jPanels.I need to find the selected radio button and make highlighted on correct answer when submit the…
Madura Harshana
  • 1,299
  • 8
  • 25
  • 40
4
votes
0 answers

Bootstrap 4 - Responsive/Wrapping Button Group

Preconditions I want to use the Button group provided by bootstrap. Additionally the button group should be switched to a vertical button group for a certain screen size. What I have right now As I did not find a built-in functionality for this, I…
JDC
  • 4,247
  • 5
  • 31
  • 74
4
votes
1 answer

Twitter Bootstrap button group 50% width

I want to create a button group containing two buttons. The button group is part of the span 6 and I want the buttons inside have 50% width, but I guess because of padding and borders the buttons break line and go over each other instead of next to…
Grigor
  • 4,139
  • 10
  • 41
  • 79
4
votes
4 answers

Which JRadioButton selected

I have several JRadioButtons in a ButtonGroup. private ButtonGroup radioGroup= new ButtonGroup(); private JRadioButton radio1= new JRadioButton("Red"); private JRadioButton radio2= new JRadioButton("Green"); private JRadioButton radio3=…
Evgenij Reznik
  • 17,916
  • 39
  • 104
  • 181
3
votes
2 answers

How to create a new ButtonGroup in scala containing RadioButtons?

I am having trouble creating a ButtonGroup containing radio buttons in the Scala Programming Language. The code I am using is as following: val buttongroup = new ButtonGroup { buttons += new RadioButton("One") buttons += new…
MRN
  • 193
  • 1
  • 12
3
votes
1 answer

Get All JRadioButton from a ButtonGroup

If we consider i have a ButtonGroup component, which have two JRadioButton like this : JRadioButton bButton = new JRadioButton("Boy"); JRadioButton gButton = new JRadioButton("Girl"); ButtonGroup group = new…
Youcef LAIDANI
  • 55,661
  • 15
  • 90
  • 140
3
votes
1 answer

Foundation 6 Button Group Expanded Not Working

I am using Foundation 6 Zurb Template with flexbox enabled and the expanded feature of the button group is not working. When I add the expanded class the last button will not fill the last space and drops to the next line on the left side. The text…
RCD
  • 47
  • 5
3
votes
2 answers

Make button group that flows vertically to horizontally cleanly

I've used a normal bootstrap 3 button group in a size one column, e.g.
3
votes
1 answer

Why are my radiobuttons not mutually exclusive?

I am trying to implement two radiobuttons and make them mutually exclusive. public ProvincesPanel() { //radiobuttons definitions.csv this.setName("Provinces 2"); ButtonGroup vanillaOrMod = new ButtonGroup(); …
BURNS
  • 711
  • 1
  • 9
  • 20
3
votes
2 answers

How to make a button group work like a radio button group?

I'm using Bootstrap 3 and I want to make two buttons work as Radio Buttons, but I can't figure out how. Here goes my code
1
2
3
13 14