Material Button Toggle Group single selection

前端 未结 4 1990
抹茶落季
抹茶落季 2021-02-19 04:55

How can I force a MaterialButtonToggleGroup to act like a RadioGroup as in having at least one selected item always? Setting setSingleSelection(true)

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 05:35

    As of 1.2.0-alpha03 you can simply use the selectionRequired option:

    
    
    
    

提交回复
热议问题