Quantcast
Viewing all articles
Browse latest Browse all 4826

Specify action event type dynamically in component

@Roman_Gula wrote:

Action helper has option on to specify type of an event, for example

<button {{action "select" post on="mouseUp"}}>✓</button>

It is possible to specify variable instead of event name. But this works only in element's tag, not in component. I tried to do like this

{{button-component (action "select" post on="mouseUp")}}

and it does not work.

How can I specify dynamically event type of an action in the component?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles