ngx-signature-pads
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

ngx-signature-pads

This module provides Angular developers with a signature pad component.


Demo screenshot

image


Getting Started

Start by installing the Angular Layout library from npm

npm i -s ngx-signature-pads

Next, you'll need to import the Layout module in your app's module.

app.module.ts

import { NgxSignaturePadsModule } from 'ngx-signature-pads';
...

@NgModule({
    ...
    imports: [ NgxSignaturePadsModule ],
    ...
});

After that is configured, you can use the Angular Layout attributes in your HTML tags for flex layout:

<ngx-signature-pads (saveEvent)="save($event)"></ngx-signature-pads>

Input options:

  • width: number (default 500px)
  • height: number (default 300px)
  • lineWidth: number (default 2px)
  • hideSave: boolean (default false)
  • hideReset: boolean (default false)

Output:

  • saveEvent: EventEmitter (base64 image)

License: MIT

Package Sidebar

Install

npm i ngx-signature-pads

Weekly Downloads

11

Version

1.0.5

License

none

Unpacked Size

40 kB

Total Files

12

Last publish

Collaborators

  • alessio.bianchini