@gappl/ngx-sign-pad
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

ngx-sign-pad

ngx-sign-pad is an Angular wrapper for szimek/signature_pad.

NOTICE

This is a fork of https://github.com/HeicoJoswig/ngx-sign-pad to make it ng 9 compatible.

Usage

1. Install

npm install ngx-sign-pad --save

2. Import SignaturePadModule

import { SignPadModule } from 'ngx-sign-pad';

...

@NgModule({
  declarations: [ ],
  imports: [ SignPadModule ],
  providers: [ ],
  bootstrap: [ AppComponent ]
})

3. Use ngx-sign-pad

import { Component, ViewChild } from '@angular/core';
import { EImageType, SignPadComponent } from 'ngx-sign-pad';

@Component({
  template: '<ngx-sign-pad [(signature)]="signature" [type]="imageTypes.SVG"></ngx-sign-pad>'
})

export class AppComponent{

  imageTypes = EImageType;
  signature = null;
  @ViewChild(SignPadComponent) signaturePad: SignPadComponent;
  
  constructor() {
  }

  clear() {
    this.signaturePad.clear();
  }
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @gappl/ngx-sign-pad

    Weekly Downloads

    20

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    120 kB

    Total Files

    33

    Last publish

    Collaborators

    • glappatoni