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

    which component should i use to get such a view?

    Framework
    2
    6
    2270
    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.
    • C
      cst_zf last edited by

      can anyone help to choose the best component to get such the view below.

      first, some flex cards with some layout inside.
      0_1501178033063_QQ图片20170728014832.png

      second, some tiles with a big icon above and text below. besides, how to get a bigger icon with <i> tag?
      q-tabs cannot get such effect, because i find it cannot wrap the tabs to multi lines…
      0_1501178044189_QQ图片20170728015231.png

      third, how to get a full screen picture view when dragging it to zoom in or out?

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

        I think I would build the components by myself, shouldn’t be that hard if you use flexbox.
        Maybee you can change the CSS of the existing card component to fit your card example, but in the end, I think it would be faster to just write them yourself.

        When using Quasar 0.14 icons you should be able to change the size by just setting the size prop.
        In 0.13 you can change the size by altering the font-size / line-height via CSS.

        To get the drag in effect you could use hammer.js or even try to do it with the integrated replacement in Quasar 0.14

        C 2 Replies Last reply Reply Quote 0
        • C
          cst_zf @a47ae last edited by

          @a47ae excuse me but what is flexbox?

          1 Reply Last reply Reply Quote 0
          • C
            cst_zf @a47ae last edited by

            @a47ae does flexbox mean the new css3 layout? use class flex in a div with quasar?

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

              Oh sorry, I mean the CSS flexbox model. It allows for easy implementing things like Grids, like in your first example.

              I did a rough implementation of the card here: https://jsbin.com/janewihomi/edit?html,css,output
              Put this markup into a component for example my-card

              Then you just use the Quasar flex classes and basically wrap them into a row, like so

              <template>
                <div class="row">
                  <my-card v-for="card in cards" class="col-3"></my-card>
                </div>
              </template>
              

              This should get you a grid of cards where there are displayed 4 cards in a row.

              C 1 Reply Last reply Reply Quote 1
              • C
                cst_zf @a47ae last edited by

                @a47ae thx for your help. i am going to study it. i leave frontend dev for years and not very familiar with new concepts.

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