CosmicMind / Material

A UI/UX framework for creating beautiful applications.
http://cosmicmind.com
MIT License
11.99k stars 1.26k forks source link

Horizontal Radio Group #1192

Open manas-somoy opened 6 years ago

manas-somoy commented 6 years ago

Is there any way to implement horizontal radio button group?

OrkhanAlikhanov commented 6 years ago

There isn't any way right now. We'll probably rework some parts of {Check,Radio}ButtonGroup to add delegations etc. in the future. We can add this feature at that time.

daniel-jonathan commented 6 years ago

@CHONUMAN thank you for the question. Yes, @OrkhanAlikhanov let's make note of this and add it when we have a chance. @CHONUMAN if you want to make a PR, we would be happy to help. Thank you.

pandeyshivang commented 5 years ago

Any news about this issue.

OrkhanAlikhanov commented 5 years ago

@pandeyshivang Not yet. I think you can achieve this by placing RadioButtons inside a UIStackView.

pandeyshivang commented 5 years ago

@pandeyshivang Not yet. I think you can achieve this by placing RadioButtons inside a UIStackView. and what about inside collectionview?

OrkhanAlikhanov commented 5 years ago

It's possible with CollectionView too but it would a bit headache since you need to create a cell with RadioButton then register it etc. I'd go with UIStackView.

daniel-jonathan commented 5 years ago

Actually this can be achieved using Grid and adding buttons to the container.grid.views = [] and set a horizontal direction. I am going to reopen this and put it into our list of items to document.