toddjordan / ember-cli-dynamic-forms

An Ember addon for creating dynamic forms
http://toddjordan.github.io/ember-cli-dynamic-forms/
MIT License
35 stars 16 forks source link

Should provide hooks for action buttons #11

Closed toddjordan closed 8 years ago

toddjordan commented 8 years ago

alpaca allows you to provide functions to handle button clicks within the form.

the dynamic forms addon should provide a way to pass functions to the component to handle submit cases. Ideally, a developer could optionally pass an action function into the component, or load the action as a reusable asset to the forms directory under the forms/actions/* directory.

The component needs both the action function and the id of the button that it applies to. Alpaca takes this information as a string:function hash.

(needs doc example link)