The default blueprint for ember-cli addons.
npm install @dk03/ember-inplace-editThis is Ember cli addon for inplace editing.The original repository is not maintain by the Authors.Ember-CLI and all test was updated in this repository.
* ember install @dk03/ember-inplace-edit
ember-inplace-edit component.``handlebars`
{{ember-inplace-edit
text=text
value=value
placeholder="Add Placeholder content"
placeholderClass="placeholder div class"
editIcon="Edit icon class, ex: fa fa-edit"
action=(action "saveUser")
}}
| Property | Description |
|---|---|
text | text to be displayed before/after editing, it can be controller property wrapping value |
value | value to be edited |
type | input/textarea (default: 'input') |
disabled | disable editing (default: false) |
model | this will be sent automatically in the action hook (optional) |
autoResize | If it is false then it will set the width and height of the textarea after editing started, otherwise it will change the size on the fly when you are typing if the ember-autoresize` addon is installed (default: false) |
placeholder | placeholder content |
placeholderClass | placeholder class (optional) |
editIcon | Edit icon class, ex: fa fa-edit (optional) |
| Action | Description |
|---|---|
action | action to be called after editing is done (optionally attached model and the new value will be sent as a parameter) |
| Event | Description |
|---|---|
on-activated | it fires when the input/textarea has been inserted into the DOM (params: component container, optionally attached model) |
Compatibility
------------------------------------------------------------------------------
* Ember.js v2.18 or above
* Ember CLI v2.13 or above