如何将Office UI Fabric ChoiceGroup分为2行和5列?
我是UI的新手,目前正在努力使用Fluent UI ChoiceGroup创建选项。我有10个条目,假设0,1,2,3,4,5,6,7,8,9。我试图强迫UI总是显示出
0 1 2 3 4
5 6 7 8 9,
我也没有可以在ChoiceGroup中附加的属性。看起来像一些CSS的东西。
请指导我。谢谢。
I am new to UI, and currently working on making on creating options using Fluent UI ChoiceGroup. I have 10 entries, let's say 0,1,2,3,4,5,6,7,8,9. I am trying to force UI to always show like
0 1 2 3 4
5 6 7 8 9
but it changes according to width.
There is no property that I can attach in the choiceGroup as well. It looks like some CSS stuff.
Please guide me with this. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看不到更好的方法来实现该方案,然后将固定的
width
choces> choceygroup root元素:choce> choceygroup
内部的项目用flexcontainer 包括:
如果需要:
工作示例。
I don't see better way to achieve that scenario then to put fixed
width
ofChoiceGroup
root element:Items inside
ChoiceGroup
are wrapped withflexContainer
which includes:You can modify it if you need:
Codepen working example.