How can I pass a dynamic value to an action? #63507
Closed
Tmeister
started this conversation in
Interactivity API
Replies: 2 comments
-
I answer myself. After reading the docs in-depth, I learned there is no need to pass anything; we can use the That function returns all the Thanks anyway! |
Beta Was this translation helpful? Give feedback.
0 replies
-
That's correct, in this case you'd use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm using
data-wp-each
to create some elements. On these elements, I have a button that triggers an action; what I'm trying to do, and I can't find the way, is pass or access a parameter (dynamic) to the action to identify, let's say, the element ID.Basically, I want to get the value of
context.request.ID
in the action.Could someone point me in the right direction?
This is what I get so far.
I appreciate any help you can provide.
Beta Was this translation helpful? Give feedback.
All reactions