status-im / pluto

https://status-im.github.io/pluto/
12 stars 3 forks source link

Allow to define local events #72

Closed jeluard closed 6 years ago

jeluard commented 6 years ago

Local events can be defined the same way views can. Only let blocks and string interpolation will be supported.

events/my-event
(let [{param :param} properties]
  [alert "Hey look at ${param}"])
jeluard commented 6 years ago

Fixed by https://github.com/status-im/pluto/commit/49dc8339c6e5d00f44406da1257ef9c0e5683ea0