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

    Modal layout

    Framework
    3
    8
    3137
    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.
    • druppy
      druppy last edited by

      I have been trying to get may way around in Quasar, and the bast way is still just to make some code πŸ™‚

      I need to have a modal for my layout (not all pages need login), and I tried to see if I could make a nice looking modal, using the q-layout as suggested in the docs, but then things got strange.

      When making a normal q-modal with some html inside, it works but was not pretty, then I tried to put a q-layout inside, and then … it became invisible. It disables the background, it has inserted all the proper things in the dom tree, but I cant see them.

      Need I do something special to use a q-layout inside a q-modal

      PS: where are all the nice demos in the doc ?

      druppy 1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Do you mean this demo? http://quasar-framework.org/components/modal.html

        πŸ˜„

        Scott

        druppy 1 Reply Last reply Reply Quote 0
        • druppy
          druppy @s.molinari last edited by

          @s.molinari Yes, it was not there yesterday πŸ™‚ I am happy to see it back and working again.

          rstoenescu 1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin @druppy last edited by

            @druppy It wasn’t removed at all πŸ™‚

            druppy 1 Reply Last reply Reply Quote 0
            • druppy
              druppy @rstoenescu last edited by druppy

              @rstoenescu Scary ! πŸ™‚ I just discovered that the page is responsive … πŸ™‚

              1 Reply Last reply Reply Quote 0
              • druppy
                druppy @druppy last edited by

                @druppy To answer my own post, when making a modal that holds another q-layout tag inside, the q-modal need to specify a size of the modal, using content-css property.

                I am sure there is some logic to that, but not in my head at the moment πŸ™‚

                1 Reply Last reply Reply Quote 1
                • s.molinari
                  s.molinari last edited by

                  According to the docs thecontent-cssproperty

                  Applies CSS style Object to Modal container.

                  So, probably without it, the modal can’t be rendered.

                  However, I too am wondering how that property is used. It looks like some Quasar magic? πŸ˜„

                  Scott

                  druppy 1 Reply Last reply Reply Quote 0
                  • druppy
                    druppy @s.molinari last edited by

                    @s.molinari I think q-layout uses 100% of parent, and parent i as big as the child dictates … and then both got confused πŸ™‚

                    content-css just apply the style to the div modal wrapper, so no real magic .

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