Sharing my JS Item signature field

Thanks to the new JS items and the AI assistants in Nocobase V2 I was able to design a simple signature component to sign forms using a mouse or finger on a mobile device. The signature is saved as a base64 string in a text field inside you collection, and can be displayed in table and detail blocks.

image

If anyone is interested the javascript is available here:

You can adjust the width and height of the pad as required by changing the fixedCanvasWidth and fixedCanvasHeigth variables.

3 Likes

Very nice

1 Like

If you have the capacity, I hope you can package this JS code into a Nocobase plugin. This capability would make a significant contribution to the world. Thank you!