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

    [Solved] Is that possible to create UI elements dynamically?

    Framework
    3
    4
    740
    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.
    • S
      Stanley last edited by Stanley

      Dear Quasar team,

      Like the title, I would like to create UI element (E.g. Q-Input, Q-Date) dynamically. How many UI elements to display is determined by back-end service.
      So is that possible? Maybe this question can go up to Vue level.
      Any proposal will be appreciate.

      qyloxe dobbel 2 Replies Last reply Reply Quote 0
      • qyloxe
        qyloxe @Stanley last edited by

        @Stanley sure! nice example here:
        https://github.com/baggachipz/q-form-builder

        you can see whats already possible here:
        https://github.com/quasarframework/quasar-awesome

        1 Reply Last reply Reply Quote 0
        • dobbel
          dobbel @Stanley last edited by dobbel

          @Stanley

          here’s some more info about dynamic components:

          https://vuejs.org/v2/guide/components.html#Dynamic-Components
          https://blog.logrocket.com/how-to-make-your-components-dynamic-in-vue-js/
          https://dev.to/deepaksisodiya/working-with-dynamic-components-in-vue-js-56ag

          You could also go a step further and make the entire template come from a server (e.g. Ajax call):
          https://www.digitalocean.com/community/tutorials/vuejs-v-runtime-template

          https://github.com/alexjoverm/v-runtime-template

          1 Reply Last reply Reply Quote 0
          • S
            Stanley last edited by

            Thank you so much! @qyloxe @dobbel
            It’s great. I need some time to digest. 🙂

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