Value Binding
The value of the Signature is a string containing an image encoded as a Data URL.
To set the value, apply any of the following approaches:
- Use the
value
property. If the value is set through thevalue
property, you have to hook up to thevalueChange
event and manually update the value of thevalue
property. - Use the
ngModel
value binding. If the value is set by thengModel
value binding, the framework will automatically update the corresponding field from the model after the value of the component changes. - Use the
formControlName
value binding available in the Reactive forms. If the value is set by theformControlName
value binding, the framework will automatically update the corresponding field from the form model after the value of the component changes.
The Signature does not support the simultaneous usage of the
value
property and thengModel
value binding.
Export Resolution
The Signature allows you to control the resolution of the exported image using the exportScale
property. When set to 1, the exported image will match the element size on screen. We recommend using the default value of 2 or higher to improve the quality on high-resolution screens and print.
The following example demonstrates how to set the export scale.
Import Scaling
The Signature scales any images provided as a value to the dimensions of the component. Use images with the same aspect ratio and resolution to avoid distortion.