I am trying to use NiceGUI to create a website using NiceGUI's default text input code. This code works well, however, I need to globally expose the variable e.value however I failed to using a simple "=".
I attempted to set e.value as a variable using this code however it failed, giving me a syntax error.
Here is the code I used:
from nicegui import ui
i = ("")
ui.input(label='Text', placeholder='start typing',
on_change=lambda e: (e.value = (i))
)
result = ui.label()
ui.run()
Any help is appreciated.