Event Handlers
suggest changeAttach 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents