Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 551 Bytes

events.md

File metadata and controls

15 lines (9 loc) · 551 Bytes

Events

Imba has a special syntax for defining complex event handlers with very little code. You can listen to any DOM event by simply declaring <div @eventname=handler> on your elements.

<div @click.stop.cooldown=console.log('hey')> 'Click me'

In addition to supporting all the native DOM events, and arbitrary custom events, Imba includes several convenient custom events to simplify important aspects of developing web applications:

ImbaEvents.own.events.custom

Further reading