15.0.0 • Published 1 year ago

ngx-edit-inline v15.0.0

Weekly downloads
9
License
MIT
Repository
github
Last release
1 year ago

ngx-edit-inline

This is a very simple inline-edit component for Angular

View demo Changes

Installation

npm install ngx-edit-inline --save

Usage

1. Import NgxEditInlineModule

@NgModule({
    imports: [NgxEditInlineModule]
  })
  export class AppModule { }

2. Add edit-inline to component:

<ngx-edit-inline 
  [value]="person?.name"
  [type]="'text'"
  [saveOption]="'onedit'"
  [debounceTime]="500"
  [selectText]="true"
  [placeholder]="'enter name'"
  (onValueChanged)="changedValue($event)"></ngx-edit-inline>

3. API

  • type: typ of the input
  • value: initial value
  • saveOption: onedit: emits changes while editing using debounceTime, focusout: only emits when the focus is set to another element
  • placeholder: text shown when 'value' is empty
  • selectText: if true it selects the current text onfocus
  • onValueChanged(): emits new values
15.0.0

1 year ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago