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

    Dynamically declare data on user click, and send them through vue-resource

    Help
    2
    3
    1257
    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
      sgametrio last edited by

      Hi guys, I’m new to this framework so i am probably wasting your time. I want to add a checkbox and a textfield everytime the user click on a button.
      Textfield is checkbox-related, and I want to send these data I collected, through vue-resource (I know how to do this), but I don’t know how to declare dynamically data.

      Substantially, I want to have an array with checkbox values (true or false) and an array with textbox text values. But the problem is that the user can add (on click) a new checkbox and a new textfield

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

        I recommend see about VueJS (vuejs.org). You can use a v-for directive with an array of data and the components will be rendered by loop

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

          Yes, I thought of this. I serached through Vue.js website and I found the answer. thanks anyway.

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