node package manager


Angular 4 (4.1.1) Quick Editor

version downloads MIT Licence

Quick Editor is Bootstrap 3 based Angular 4 Quick Editor. This Editor suits your need if you need a simple UI editor quickly. The editor provides Metadata way of configuration, which saves energy of writing lots UI code. The project has been updated to use typescript declaration files in node_modules/@type, if there is any pre installed global typings files, please uninstall.

Currently, the editor supports 4 types of input,

More types of inputs will be added soon.


  • onSave onDelete event binder
  • UI Read-Only Mode
  • Dirty field indicator
  • Data reset after cancel edit
  • Save Cancel Edit and Delete buttons with icon are provided
  • Google Map Edit with draggble marker and geocode search


How To Use

Setup the quick-editor through NPM

npm install quick-editor --save

Before using the script, please add following library into .angular-cli.json

 "styles": [
      "scripts": [

Import the Quick Editor Classes when required

import {
} from "quick-editor";
    imports: [
    declarations: [...],
    entryComponents: [
    bootstrap: [AppComponent]
export class AppModule {

The field name in EditorMetadata should be same as property name in data model. Location attribute should be a tuple type with 2 number element, represents latitude and longitude. Tags attribute should be an array.

export interface Place {
    latlng:[number, number],
    template: `
    <div class="panel panel-default" *ngFor="let place of places;">
    <div class="panel-body">
        <quick-editor [metadataArray]="metadataArray" [dataModel]="place"
    directives: [QuickEditorComponent]
export class PageEditComponent implements OnInit {
    metadataArray:EditorMetadata[] = [<EditorMetadata> {
        label: 'Name',
        field: 'name',
        placeholder: 'Please input place name',
        type: EditorMetadataType.TextInput
    }, {
        label: 'Description',
        field: 'desc',
        placeholder: 'Please input some description',
        type: EditorMetadataType.TextArea
    }, {
        label: 'Address',
        field: 'address',
        placeholder: 'Please input place name',
        type: EditorMetadataType.TextInput
    }, {
        label: 'Map',
        field: 'latlng',
        placeholder: '',
        type: EditorMetadataType.GoogleMap
    }, {
       label: 'Tags',
       field: 'tags',
       placeholder: 'Tags to describe the place',
       type: EditorMetadataType.TagsInput