make ons-popover look like ios view in android

  • @Fran-Diox I want ons-popover in android which should look like ios view for ons-popover
    what modifier should I use??
    for android it is material but for ios ??

  • Onsen UI

    @Gaurav Add disable-auto-styling attribute to the popover. More info here.

    Also, please don’t tag my username directly when you create a new topic. I answer when I’m online but other users can also answer before me :sweat_smile:

  • ooh sorry :sweat_smile:

  • ok but there is no modifier for ios like modifier=“material” for android ?? beacuse for ons-toast also I want to use ios view in android so modifier would be easy for me

  • Onsen UI

    @Gaurav No, the default style is already iOS-like. The Android appearance is due to the material modifier. Therefore, you only need to remove that modifier.

    Mixing iOS and Android styles in the same app is not very usual. If you want full iOS styles you can just call ons.disableAutoStyling() at the beginning of the app and it won’t add material modifiers anywhere.

  • ok thanks

Log in to reply