Skip to content
This repository has been archived by the owner on Nov 18, 2019. It is now read-only.

Disable the directive #50

Closed
dashawk opened this issue Apr 20, 2017 · 1 comment · Fixed by #51
Closed

Disable the directive #50

dashawk opened this issue Apr 20, 2017 · 1 comment · Fixed by #51

Comments

@dashawk
Copy link

dashawk commented Apr 20, 2017

I cannot disable this, tried using ng-disabled but it did not work. However, there is an option from here like this signaturePad.off();. I'm not sure where to put it.

@jasny jasny changed the title Cannot disable the directive Disable the directive Apr 20, 2017
JonSnaka added a commit to JonSnaka/angular-signature that referenced this issue Apr 21, 2017
The change resolves legalthings#50. Added disabled attribute to the directive which internally togged on/off on the signature pad.
@JonSnaka
Copy link
Contributor

JonSnaka commented Apr 21, 2017

Hi,

I also needed this functionality, so I have made a PR for it. I added a disabled attribute to the directive for you to use. You can then use it like: <signature-pad accept="accept" clear="clear" disabled="yourVariable" height="200" width="700">

Hope it helps!

@jasny jasny closed this as completed in #51 Apr 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants