All Buttons inside ButtonGroup have same status
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
Issue description
Current behavior: Button elements in ButtonGroup have same status
Expected behavior: Each Button should have its own status
Steps to reproduce:
<ButtonGroup>
<Button status='success'>
A
</Button>
<Button>
B
</Button>
<Button>
C
</Button>
</ButtonGroup>
Related code:
insert short code snippets here
Other information:
OS, device, package version
package: 4.3.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
ButtonGroup (Java Platform SE 7 ) - Oracle Help Center
Creating a set of buttons with the same ButtonGroup object means that turning "on" one of those buttons turns off all other buttons...
Read more >swing - Have a Button Group in Java where all buttons can be ...
Just use the clearSelection() method of ButtonGroup : ButtonGroup.clearSelection(). Clears the selection such that none of the buttons in ...
Read more >Button group - Bootstrap
Group a series of buttons together on a single line with the button group, and super-power them with JavaScript.
Read more >ButtonGroup Properties - MathWorks
Button groups are containers for managing exclusive selection of radio buttons and toggle buttons. Use the uibuttongroup function to create a button group....
Read more >ButtonGroup QML Type | Qt Quick Controls 6.4.1
ButtonGroup is a non-visual, mutually exclusive group of buttons. It is used with controls such as RadioButton, where only one of the options...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pjnovas Actually,
ButtonGroup
is not about selection mode. For this case, you may see a gist I use in my projectCurrently I am not able to give inline Action Buttons with different colors. Simple use case is providing
Save
,Save & Add Another
andDelete
options for some entry.Save
with primary status,Save & Add Another
withinfo
status andDelete
withdanger
status.Another use case is providing
OK
andCancel
buttons.Although all use cases can be covered by replacing ButtonGroup with View and writing extra style. But it will be better if ButtonGroup does not restrict individual Button property.
Additionally I found one more issue.
ButtonGroup
is acceptingwhite
status and it is passing it toButton
.Button
does not acceptwhite
status. It acceptsbasic
status that is not accepted byButtonGroup
. It raises following warning: