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

    Help with a knob inside datatable

    Help
    2
    5
    688
    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.
    • P
      peterPanParker last edited by

      hi everyone, i have a datatable in which i put a knob component in a column, when i get my service data and populate datatable the knob component seems ok, but when i try to change its value i get this error:

      [Vue warn]: Error in event handler for “input”: “TypeError: Cannot set property value of #<Object> which has only a getter”

      i understand that the model of the knob does not have a set method to change its value at least not inside the datatable…

      My question is if is it correct/possible to have an input control inside datatable?, if so how can i achive it? where do i have to put that set method?

      thanks for you time and help.

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

        Hi,

        Please write a jsfiddle with your case, and I’ll update it to make it work. If I forget about this thread, please ping me on Discord. Thanks.

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

          thanks @rstoenescu, i did the jsfiddle: https://jsfiddle.net/peterPanParker/4cLpx12L/3/

          I hadnt used jsfiddle before so i just forked one post you had made (i hope it doesnt mind you)…
          just one additional note… in my real code i have a page, inside that page i am trying to use a component (which is the datatable with the knob) and maybe is my lack of knowledge about sub components and their relationship with their parent which is causing this error…

          anyway i appreciate your help
          thanks

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

            I remember I already answered this, but anyhow. Posting again: https://jsfiddle.net/njvto8hq/
            When in doubt, just print out {{ props }} inside the scoped slots 😉

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

              @rstoenescu thanks…

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