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
1
vote
3 answers

How do I clear the selection in a ButtonGroup such that no elements of the associated set of abstract buttons are selected?

I have created 5 radioButton group. I want user clear all group in one click. i use java 1.5. Does any one know how to do it? public void actionCommandCLEAR() { timeGroup.setSelected(timeGroup.getSelection(),false); …
itro
  • 7,006
  • 27
  • 78
  • 121
1
vote
1 answer

Ext JS 4 - Vertical ButtonGroup DOM Exception

Getting an exception like this while trying to have a single column vertical buttongroup: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 [ext-all-dev.js:88026] var btn1 = Ext.create('Ext.button.Button', { text: 'BTN 1', iconCls:…
talha06
  • 6,206
  • 21
  • 92
  • 147
1
vote
2 answers

setting a default enabled radiobutton in a JTable

I used this guide in order to make JTable that would handle radio buttons. Works fine except i need to enable a default enabled button. there can be n rows. I've tried to enable it through the default table model, the Object[][], the table, and i…
Phox
  • 101
  • 1
  • 1
  • 10
1
vote
4 answers

How to add more then one radio button to form and how to connect two forms in java?

I am totally new to JAVA..i want to create a form with two Radio buttons on it,one for student and other for teacher. when the user clicks on student another form related to student should open and when user clicks on teacher,teachers form should…
user1390517
  • 249
  • 2
  • 10
  • 23
1
vote
2 answers

How to get the selected RadioButton from JTable

i'm workin on programe and i need to get the selected radio buttom from a Jtable I found an exemple that i'm workin on there is to class the 1st : import java.awt.Component; import java.awt.event.ItemEvent; import…
Adel Bachene
  • 974
  • 1
  • 14
  • 34
0
votes
1 answer

How do you set the style for the selected MudButton in the MudButtonGroup?

I am looking for a way to set the style of the selected button in the MudButtonGroup. I have looked at the classes set for the Buttons and ButtonGroup and have not found anything that differentiates the selected button.
Demet
  • 13
  • 3
0
votes
1 answer

Datatables multi-button group add another button group

I have a datatables in my page where I have included multiple export buttons and custom buttons. What I wanted to do was to put all the custom buttons below the export buttons. I came across this guide from datatables but the buttons shows below my…
typicalguy
  • 45
  • 7
0
votes
2 answers

how to select button input range with radio button

saya ingin membuat button group untuk skala perbandingan metode AHP
0
votes
0 answers

Is there a way to cancel a css property in a rule (primarily for media query use)?

My problem stems from trying to build responsiveness using a bootstrap button group. It defines the following .btn { border-radius: 0.375rem } .btn-group-vertical > .btn:not(:last-child) { border-bottom-right-radius: 0; …
swang
  • 16
  • 2
0
votes
1 answer

No JavaScript event firing for Boostrap 5 button group

Correct me if I'm wrong, but it seems like the button group in Bootstrap 5 does not fire an event on click or change anymore? How would you detect change in JavaScript, preferably? In Boostrap 3, we've used $('.btn-group').on('change', ...). See…
Olle Härstedt
  • 3,799
  • 1
  • 24
  • 57
0
votes
0 answers

How to make validation on button group of toggle button in react-bootstrap?

I am having a component which contains a button group in which each button shows the time slot on it.User clicks the button, time slot gets selected.I want to put validation if the user does not select the time and error message gets displayed.I do…
0
votes
1 answer

Bootstrap 3 group-button behavior

I have regular group-button behavior with label and radio buttons:
0
votes
2 answers

Selecting button in React Native ButtonGroup

I have a small problem. I'm using a ButtonGroup which previously worked with two options but now I am offering 4 options. It renders correctly on the screen but I can only select the first two options. How can I jump between the selections so that I…
Michael
  • 5
  • 2
0
votes
1 answer

How to populate a ButtonGroup[] array using a for loop

So I have two arrays of JRadioButton[] that I am trying to put into an array of ButtonGroup[]. When I add a single JRadioButton from my array one at a time to a single ButtonGroup, I have no problems. When I use a for-loop to add to an array of…
0
votes
1 answer

HTML Bootstrap Button Toggle

I'm trying to untoggle the other buttons in the button group when clicking on a button in the group. For example, when a person clicks "E" it toggles the E button on and turns off the others. I am doing this for multiple different button groups, but…