question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All Buttons inside ButtonGroup have same status

See original GitHub issue

Issue 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:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

6reactions
artyorshcommented, Mar 30, 2020

@pjnovas Actually, ButtonGroup is not about selection mode. For this case, you may see a gist I use in my project

5reactions
28harishkumarcommented, Nov 12, 2019

Currently I am not able to give inline Action Buttons with different colors. Simple use case is providing Save, Save & Add Another and Delete options for some entry. Save with primary status, Save & Add Another with info status and Delete with danger status.

Another use case is providing OK and Cancel 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 accepting white status and it is passing it to Button. Button does not accept white status. It accepts basic status that is not accepted by ButtonGroup. It raises following warning:

Button: unsupported configuration.
Check one of the following prop values {
  "appearance": "filled",
  "variants": [
    "white",
    "medium"
  ],
  "states": []
}
📖 Documentation: https://akveo.github.io/react-native-ui-kitten/docs/components/button/api
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found