Where does the $row variable comes on this of the docs? #1157
Answered
by
luanfreitasdev
viniciusalvess
asked this question in
Q&A
-
Hello, I'm trying to add a dispatch to an button action I'm adding to my grid, but it is not clear where this $row variable comes from the dipatch section of the documentation. when I try to use the example below, it gives me the error: ###Error: ###Code: Button::add('create-dish')
->slot('Create a dish')
->class('bg-indigo-500 text-white')
->dispatch('postAdded', ['key' => $row->id']), Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
luanfreitasdev
Sep 17, 2023
Replies: 1 comment 1 reply
-
Hello!. You can add the $row parameter within actions and the current row item in the table will be loaded. I fixed the documentation |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
luanfreitasdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello!. You can add the $row parameter within actions and the current row item in the table will be loaded.
I fixed the documentation