Set the value of the client state variable. This property can only be attached to a frontend event trigger. To set a value from a backend event handler, see `push`. Returns: A special EventChain Var which will set the value when triggered.
(self)
| 246 | |
| 247 | @property |
| 248 | def set(self) -> Var: |
| 249 | """Set the value of the client state variable. |
| 250 | |
| 251 | This property can only be attached to a frontend event trigger. |
| 252 | |
| 253 | To set a value from a backend event handler, see `push`. |
| 254 | |
| 255 | Returns: |
| 256 | A special EventChain Var which will set the value when triggered. |
| 257 | """ |
| 258 | return self.set_value() |
| 259 | |
| 260 | def retrieve(self, callback: EventHandler | Callable | None = None) -> EventSpec: |
| 261 | """Pass the value of the client state variable to a backend EventHandler. |