Hi,
Thank you for the package! It is already integrating nicely in my projects.
I do have one feature that would improve the DX quite a lot when working in NiceGUI apps: Having Signal and Computed be BindableProperties.
Use case example:
Currently, I'm using the following work around quite a lot:
class State:
def __init__(self):
self.count_text = Computed(...)
state = State()
a_label = ui.label()
_label_effect = Effect(lambda: a_label.set_text(state.count_text()))
This could be made easier with support for BindableProperties:
class State:
def __init__(self):
self.count_text = Computed(...)
state = State()
ui.label().bind_text_from(state.count_text)
Hi,
Thank you for the package! It is already integrating nicely in my projects.
I do have one feature that would improve the DX quite a lot when working in NiceGUI apps: Having
SignalandComputedbeBindableProperties.Use case example:
Currently, I'm using the following work around quite a lot:
This could be made easier with support for
BindableProperties: