Event Handlers

suggest change

Attach handlers with on:

class ClickMe < Hyperloop::Component
  render do
    DIV do
      SPAN { "Hello There" }
      A { "Click Me" }.on(:click) { alert('you did it!') }
    end
  end
end

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents