PeterT
PeterT
SSolara
Created by PeterT on 10/31/2024 in #questions-issues
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
SSolara
Created by PeterT on 10/11/2024 in #questions-issues
standard file input using the v-file-input component.
I am trying to implement the ability to upload files using the v-file-input component from vuetify. I got as far as ``` Import reacton.ipyvuetify as rv @solara.component def Page(); file_content = solara.reactive(“”) def file_handler(file_info): fielename = file_info[‘name’]

rv.FileInput(label = “upload file”) But then I don’t know how to connect the component to the file_handler function and get the actual content into memory. I tried to understand the file drop component but wasn’t successful. Too much of a beginner I suppose.
6 replies
SSolara
Created by PeterT on 10/3/2024 in #questions-issues
inputText label position
I am wondering whether it is possible to display the label next to the input field rather than on top of it. Also how would I style font color etc of the label. New to solara and just trying to figure this out
3 replies