Angular Inline Edit
A directive for the inline-edit-js library
Installation
Install with NPM:
npm install ngx-inline-edit
Then, import the directive
;
declarations: ... InlineEditDirective ...
Basic Usage
Set a property in your component
public editableString: string;
Then use that property with the inline edit directive
{{ editableString }}
onChange Callback
You can also pass a callback to the onChange event
public editableString: string; ... public { // handle new value }
{{ editableString }}
Options
editable
Type: string
Your editable property
onChange
Type: Function
Default: null
A callback that fires when the editable model changes, it passes back 3 parameters: newValue, oldValue, and a reference to the element.