shyft.dashboard.time_series.attr_callback_manager
Classes
This object gives possibility to add on_change callbacks on all class attributes. |
- class shyft.dashboard.time_series.attr_callback_manager.AttributeCallbackManager[source]
Bases:
object
This object gives possibility to add on_change callbacks on all class attributes. Whenever the attributes is changed, the registered callbacks are called.
The callbcak signature is as follows:
callback(obj: Any, attr: str, value: Any)
- where:
obj: is the class instance which attribute was changed
attr: name of the attribute
value: the new value of the attribute