MarvinKlein1508 / SignaturePad

A simple to use blazor component to draw custom signatures.
MIT License
72 stars 12 forks source link

Programmatically make signature pad readonly or disabled #7

Closed adityar-git closed 1 year ago

adityar-git commented 1 year ago

Is there a way to set a flag in the signature field or modify the javascript function to make the canvas as readonly

MarvinKlein1508 commented 1 year ago

No, there is currently no way to make it readonly. But this seems to be a good idea for a new feature.

adityar-git commented 1 year ago

For now, I have made it convert to an image when read-only is activated and bring the signature pad back if not. But thank you for considering.

MarvinKlein1508 commented 1 year ago

The feature is now implemented. You can now set the parameter Disabled to make the instance readonly.