No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Maximize modals on mobile, minimize on desktop

    Framework
    3
    4
    611
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ssuess
      ssuess last edited by

      I notice modals have properties “minimized” and “maximized”, but how can I apply one to mobile views and another to desktop (or other size) views?

      1 Reply Last reply Reply Quote 0
      • R
        rconstantine last edited by

        If memory serves, you can detect the platform you’re on (ah, yes: https://quasar-framework.org/components/platform-detection.html).

        You can then assign minimized and maximized booleans based on the result of checking platform. the properties would look like :minimized=“someDataElement” and you’d set someDataElement in the check.

        1 Reply Last reply Reply Quote 1
        • ssuess
          ssuess last edited by

          I will try that, thanks!

          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by Hawkeye64

            @ssuess This is automatic and does its own platform checking. The minimized and maximized are there if you need to override the default behavior. Modals are responsive to the width of the window (see demo on a desktop and resize browser window). Sometimes you need to always have a Modal maximized or minimized regardless of window width, so to do this, Quasar offers the minimized and maximized props: https://quasar-framework.org/components/modal.html

            1 Reply Last reply Reply Quote 1
            • First post
              Last post