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

    get index through popup-edit in data-table

    Help
    3
    6
    830
    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.
    • L
      lunne last edited by

      Hi,
      This is the purpose:
      When i edit a input in a data table I want to be able to know what object/row is updated so i can modify the row in the datatable (change bg, add icons) and/or send a ajax request to store the row(s).

      Either by:
      a) getting the row.__index from the datatable
      b) getting the whole row

      if I use the @save function it looks like im only getting (value, initialValue)

      any ideas?

      /Mathias

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

        Just a wild guess, but possibly try the @hide event and catch the event itself (i.e. “e” as a method argument) along with using the @save event. That might give you something to work with.

        Scott

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

          @lunne
          call a method with your scoped props as a parameter in either save, show or hide events (hide event will not fire tho if you used buttons in your popup edit).
          ie. @save="doSomething(props)", then you can process the prop object, you can pass whole scoped object props or just props.row if you just want the row object like so @save="doSomething(props.row)".

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

            Cool solution.

            Scott

            1 Reply Last reply Reply Quote 0
            • L
              lunne last edited by

              @metalsadman

              works like a charm, thanks!

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

                glad to help.

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