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.

Multiple selection ToggleButtons

See original GitHub issue

Now there is only a single widget which allows multiple selection - selection list. Often toggle buttons suit better, but in ipywidgets they allow to select single item only. While it’s not that difficult to make a similar widget manually using a box and separate ToggleButtons (+ a bit of custom CSS), having this out of the box would be great!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
aplavincommented, Aug 20, 2016

@hainm I mean that such a widget is of very general use, and in some common cases better (e.g. takes less vertical space - just a single line - compared to selection list, which is currently the only multiple selection widget; also can be operated with mouse only - through that’s a minor thing). And there are single-selection ToggleButtons already, so why not include such an obvious generalization?

And as for implementing it on top of ipywidgets see here for my version (in pure python, I don’t feel like messing with widgets templates).

2reactions
wave-DmPcommented, Jul 18, 2018

Hi all,

came across this while trying to find the feature - has this been implemented?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toggle-Buttons mutually exclusive and multiple selection ...
I have 3 toggle buttons (for filtering a list) which have the same hierarchy weight. Button A and B are mutually exclusive, means...
Read more >
ToggleButtons class - material library - Flutter - Dart API docs
Here is an implementation that allows for multiple buttons to be simultaneously selected, while requiring at least one selection. This assumes that isSelected ......
Read more >
How can I access multiple ToggleButtons created in a class?
I would recommend creating and exposing an ObservableSet<Integer> in the controller, representing the set of selected toggles.
Read more >
ToggleButtons (Flutter Widget of the Week) - YouTube
Do you want to let your users select from a number of related options? Adding ToggleButtons to your app can help!
Read more >
how to make multiple selection of togglebutton in gridlayout
i am new to python and kivy i have the following requirements 1).how to make multiple selections of buttons available in subtest() 2).for ......
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