Code Monkey home page Code Monkey logo

ember-inplace-edit's Introduction

ember-inplace-edit npm version Build Status

This is Ember cli addon for inplace editing

Demo

Installation

  • ember install ember-inplace-edit

Released Version

Usage

This addon provides an ember-inplace-edit component.

{{ember-inplace-edit
  text=text
  value=value
  placeholder="Add Placeholder content"
  placeholderClass="placeholder div class"
  editIcon="Edit icon class, ex: fa fa-edit"
  action="saveUser"
}}

Properties

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)

Actions

Action Description
action action to be called after editing is done (optionally attached model and the new value will be sent as a parameter)

Events

Event Description
on-activated it fires when the input/textarea has been inserted into the DOM (params: component container, optionally attached model)

ember-inplace-edit's People

Contributors

anilmaurya avatar tothpeter avatar tradziej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ember-inplace-edit's Issues

Error while build

Addon templates were detected, but there are no template compilers registered for ember-inplace-edit. Please make sure your template precompiler (commonly ember-cli-htmlbars) is listed in dependencies (NOT devDependencies) in ember-inplace-edit's package.json.

Found similar issues on other cli may be needs fix.

https://github.com/abuiles/ember-cli-101-errata/issues/180

Info

Version 
cli 0.2.7
ember: 1.12.0

DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-htmlbars` at Function.Addon.lookup (/Users/.../…/.../node_modules/ember-cli/lib/models/addon.js:1009:27)

Ember : 2.7.0
ember-cli-htmlbars: 1.0.10

Your addon is locked to an older version of ember-cli-htmlbars.

Take a look at it !

npm ls ember-cli-htmlbars

Please update [email protected] in your addon to higher version which supports ember-cli 2.7.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.