Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@idom.event
async def on_click(event):
count.value += 1
mount(idom.html.div, {"id": f"hotswap-{count.value}"}, count.value)
@idom.event
async def on_click(event):
clicked.set(True)
@idom.event(prevent_default=True)
async def on_key_down(value):
pass
@idom.event(target_id=target_id)
async def an_event():
self.update()
@idom.event
async def incr_on_click(event):
self.update(count + 1)
@idom.event(prevent_default=True, stop_propagation=True)
async def on_hover(event):
if not hovered:
set_hovered(True)