Ionic2 Ion-select without OK and Cancel

前端 未结 3 917
梦谈多话
梦谈多话 2020-12-17 20:57

I have built an Ionic2 app and I am currently trying to improve the UX. To do that, I received some feedback that made me think of whether there is a way of having a

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 21:18

    Changing the API used in the select element (by using the ActionSheet API) could be an option.

    In order to do that, you only need to add interface="action-sheet" in the ion-select element.

      
        Gender
        
          Female
          Male
        
      
    

    I'm not sure if that's a valid option (in terms of UX) in your app.


    EDIT:

    Just like you can find in Ionic 2 docs

    If the number of options exceed 6, it will use the alert interface even if action-sheet is passed.

提交回复
热议问题