(
self,
function: Callable[..., Any],
stop_propagation: bool = False,
prevent_default: bool = False,
)
| 198 | self.target = uuid4().hex |
| 199 | |
| 200 | def use( |
| 201 | self, |
| 202 | function: Callable[..., Any], |
| 203 | stop_propagation: bool = False, |
| 204 | prevent_default: bool = False, |
| 205 | ) -> EventHandler: |
| 206 | return EventHandler( |
| 207 | to_event_handler_function(function), |
| 208 | stop_propagation, |
| 209 | prevent_default, |
| 210 | self.target, |
| 211 | ) |