Material icon indicating copy to clipboard operation
Material copied to clipboard

Horizontal Radio Group

Open manas-somoy opened this issue 6 years ago • 7 comments

Is there any way to implement horizontal radio button group?

manas-somoy avatar Nov 30 '18 21:11 manas-somoy

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.

OrkhanAlikhanov avatar Dec 02 '18 14:12 OrkhanAlikhanov

@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.

daniel-jonathan avatar Dec 02 '18 14:12 daniel-jonathan

Any news about this issue.

pandeyshivang avatar Apr 05 '19 07:04 pandeyshivang

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

OrkhanAlikhanov avatar Apr 05 '19 21:04 OrkhanAlikhanov

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

pandeyshivang avatar Apr 19 '19 05:04 pandeyshivang

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.

OrkhanAlikhanov avatar Apr 22 '19 16:04 OrkhanAlikhanov

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.

daniel-jonathan avatar Apr 22 '19 17:04 daniel-jonathan