diff --git a/pyjecteur/reactive.py b/pyjecteur/reactive.py index f42d625..0b90d69 100644 --- a/pyjecteur/reactive.py +++ b/pyjecteur/reactive.py @@ -149,6 +149,11 @@ class L(ReactiveMixin): # ruff: disable=invalid-name if self.light: self.light.attr_set_hook(self.key, self) + def set_all(self, l): + self._val = l + if self.light: + self.light.attr_set_hook(self.key, self) + def __iter__(self): return self._val.__iter__()