Skip to content

Elm(ish) onClick Event/Function Attribute #58

Closed
@nelsonic

Description

@nelsonic

In order to simplify event listeners in our TEA example apps,
I'm thinking that adding an onclick attribute to a given node and passing in the signal(action)
is the simplest way of keeping the view declarative.

This will be useful for both "delete" a todo item (which is a button) and incrementing a counter.

  • add_attribute([function]) >> onclick=signal(action)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions