Skip to content

Commit

Permalink
docs(discussion): #443
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Feb 23, 2024
1 parent 996d9ee commit fe4e7de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/validation/discussion/443.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def on_click(e):
print(e)


def load_data(item):
print(item)
def load_data(entry, item):
print(entry, item)


with SinglePageLayout(server) as layout:
Expand All @@ -44,14 +44,13 @@ def load_data(item):
$event.preventDefault();
menuX = $event.clientX;
menuY = $event.clientY;
menuShow = true;
menuShow = $event.srcElement.textContent;
""",
)
with vuetify3.VMenu(
v_model=("menuShow", False),
style=("{ position: 'absolute', left: `${menuX}px`, top: `${menuY}px`}",),
) as menu:
print(menu)
with vuetify3.VList():
with vuetify3.VListItem(
v_for="(item, i) in menu_items",
Expand All @@ -60,7 +59,7 @@ def load_data(item):
):
vuetify3.VBtn(
"{{ item }}",
click=(load_data, "[item]"),
click=(load_data, "[menuShow, item]"),
)


Expand Down

0 comments on commit fe4e7de

Please sign in to comment.