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

    Beginner question about making data in table example reactive

    Framework
    2
    2
    307
    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.
    • D
      davidconf last edited by

      Hi,

      I’m new to Vue and Quasar so please forgive me for asking what is no doubt a very simple question.

      The Quasar table examples contain a vue instance with a data function that returns hardcoded data and column items. Is there some sample code available that shows the table component being used with the data function returning reactive data from javascript variables exterrnal to the vue instance.

      Thanks

      David

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

        Hi David,

        The data is reactive. If you make a change to the bound data, it shows up directly in the view as changed. See this example for what I mean.

        https://codepen.io/smolinari/pen/qzBoqW

        It doesn’t matter if it’s an added or removed row, or changed data. The data is updated as it is changed. It’s the core beauty to reactive frameworks. 😄

        Scott

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