MarvinKlein1508 / SignaturePad

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

Custom height and clear programmatically #12

Closed mkzaker closed 8 months ago

mkzaker commented 1 year ago

how i can set custom height and clear canvas programmatically?

MarvinKlein1508 commented 1 year ago

You can clear the canvas by simply setting your bound property to an empty array.

To change the size of the canvas you can override the CSS class signaturepad and set your custom height and width.

MarvinKlein1508 commented 8 months ago

You can now define the width and height bei either applying width or height attributes or by defining a custom style attribute on the component itself