@savantly/ngx-inline-edit
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Build Status

ngx-inline-edit

Inline editing for Angular and Material

An input box appears when you click on the text, with confirm/cancel buttons.
I use this as an alternative to submitting an entire form. Whereas a single field, when modified, can be sent to persistent storage.
Easy peasy!

Feel free to create PRs and suggest updates.

See this example - example use

Example

Install npm install @savantly/ngx-inline-edit

Include the module in your project -

import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';
import { InlineEditModule } from '@savantly/ngx-inline-edit';


@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    InlineEditModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Use the directive -

<inline-input-edit 
    [label]="'Test Label'" 
    [required]="true" 
    [prefix]="'<b>$</b>&nbsp;'" 
    [changed]="onChange"
    ([value])="value">
</inline-input-edit>

Example

Editing

Editing2

Viewing

Package Sidebar

Install

npm i @savantly/ngx-inline-edit

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

87.1 kB

Total Files

18

Last publish

Collaborators

  • jdbranham