S
Solara2mo ago
PeterT

I am trying to create an HTML component with event listeners.

The aim is to have an HTML component to render HTML snippets and than listen to certain events that happen on a particular class. For instance attach a click event listener to all elements with class decorated. I want to emit these events so that I can check in the python backend which element was clicked So far I was able to create the vue template file and also the ipyvuetify component which I then convert to a solara component. It works except for catching the emitted event in python. Here are the two files I have so far as well as the page for solara. Any ideas would be much appreciated. The issue seems to be the observe method that doesn't observe anything (or the $emit method on the vue compoent? Thanks in advance
2 Replies
MaartenBreddels
Could you turn this to a snippet or project on https://py.cafe ? that makes it super easy for me to continue, and/or debug
PyCafe: Create & Share Streamlit, Dash and Python Apps Online.
Playground for Python web frameworks. Run and edit Python code snippets for web frameworks in a web browser.
PeterT
PeterTOP3w ago
I will try next week when I have some time available
Want results from more Discord servers?
Add your server