Replies: 2 comments 3 replies
-
I don't understand what you are trying to do. But if you want to leverage some JS logic, you need to create the variables you need onto your server.state (i.e. sever.state.category = 1). And then you can do whatever you want. |
Beta Was this translation helpful? Give feedback.
2 replies
-
def common_params_table(category):
with html.Tbody(v_for="(item, index) in Params", key="index"):
with html.Tr(v_if=f"item.category == {category}"):
... |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jealtw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code:
I want to reference 'category' parameter of 'common_params_table' method inside v_if sentence like following:
with html.Tr(v_if="item['category']==category"):
Is it possible?
And if it is possible, what is the correct syntax? Please give any help. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions