Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom height and clear programmatically #12

Closed
mkzaker opened this issue Jun 16, 2023 · 2 comments
Closed

Custom height and clear programmatically #12

mkzaker opened this issue Jun 16, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@mkzaker
Copy link

mkzaker commented Jun 16, 2023

how i can set custom height and clear canvas programmatically?

@MarvinKlein1508
Copy link
Owner

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 MarvinKlein1508 added the documentation Improvements or additions to documentation label Jun 16, 2023
@MarvinKlein1508
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants