Injecting configuration when starting programattically #4704
davetapley
started this conversation in
General
Replies: 0 comments
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.
-
I'm starting NiceGUI programmatically (see also #4613).
My current approach to pass configuration using the storage API, thus:
Where
gui.main
defines my@page
functions and loads from storage:And start thus:
It works just fine, but I wanted to put it out there in case anyone has an other ideas.
Beta Was this translation helpful? Give feedback.
All reactions