smooth-signature-pad
Reactive icon

Smooth Signature Pad

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 6 Apr (17 hours ago)
 by 
0.0
 (0 ratings)
smooth-signature-pad

Smooth Signature Pad

Documentation
1.0.0

Input Parameters


ParameterData TypeDefaultDescription
PenColorText"#000000"Hex code for the ink color.
MinWidthDecimal0.7Minimum line thickness (used during fast strokes).
MaxWidthDecimal2.2Maximum line thickness (used during slow strokes).
HeightText"200px"The height of the pad (supports px, vh, or %).

Client Actions (Public API)


  • ClearSignature: Resets the canvas and clears all drawings.

  • GetSignatureImage:

    • Output: ImageBase64 (Text).

    • Usage: Captures the signature as a PNG image string (data:image/png;base64,...).

Events

  • OnSignatureComplete: Triggered every time a stroke is finished. Use this to update a preview image or enable "Submit" buttons.


Implementation Tips

  • Storage: To save the signature, use the Base64ToBinary action from OutSystems UI to convert the ImageBase64 output into a Binary Data attribute for your database.

  • Previewing: To show the user their signature, use a standard Image Widget with Type = External URL and bind it to the Base64 output string.

  • Responsive Design: The component automatically handles window resizing, so it works perfectly in both Portrait and Landscape modes.