https://github.com/jbuget/ember-cli-formable
An integrated Formable component for Ember CLI projects.
https://github.com/jbuget/ember-cli-formable
Last synced: 10 months ago
JSON representation
An integrated Formable component for Ember CLI projects.
- Host: GitHub
- URL: https://github.com/jbuget/ember-cli-formable
- Owner: jbuget
- License: gpl-3.0
- Created: 2018-09-07T00:38:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-07T16:43:00.000Z (over 7 years ago)
- Last Synced: 2025-01-29T05:28:03.826Z (about 1 year ago)
- Language: JavaScript
- Size: 304 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-cli-formable
==============================================================================
This addon provides a component to easily integrate one or multiple [Formable](https://getformable.com/) forms into an Ember CLI application.
Installation
------------------------------------------------------------------------------
```
ember install ember-cli-formable
```
Usage
------------------------------------------------------------------------------
If you have only one Formable form to integrate in your application, just use the `formable-form` (required) component and specify the property `formKey` as follows::
```
// app/routes/index.hbs
{{formable-form formKey="14c50406-f195-451d-a93a-c206d3c13548"}}
```
If you want to integrate multiple forms, you have to specify a DOM element ID for each form, with the component option `formId` as follows:
```
// app/routes/index.hbs
{{formable-form formId="form-1" formKey="aaa-bbb-ccc"}}
{{formable-form formId="form-2" formKey="xxx-yyy-zzz"}}
```
Contributing
------------------------------------------------------------------------------
### Installation
* `git clone `
* `cd ember-cli-formable`
* `npm install`
### Linting
* `npm run lint:hbs`
* `npm run lint:js`
* `npm run lint:js -- --fix`
### Running tests
* `ember test` – Runs the test suite on the current Ember version
* `ember test --server` – Runs the test suite in "watch mode"
* `ember try:each` – Runs the test suite against multiple Ember versions
### Running the dummy application
* `ember serve`
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
License
------------------------------------------------------------------------------
This project is licensed under the [AGPL-3.0 License](LICENSE.md).