Web Component: j-ClipboardImage
j-ClipboardImage
This component automaticaly captures images in Clipboard.
Configuration:
quality
{Number} JPEG quality, (default:90
)maxwidth
{Number} a maximum width (default:1024
)maxheight
{Number} a maximum height (default:768
)exec
{String} a link to execute method if the image is obtaineddisabled
{Boolean} can disable this component- NEW:
type
{String} output type, supportspng
orjpg
(default)
How to capture data?
// Attach event
ON('clipboardimage', function(base64) {
// We have to send data on the server in Base64 format
AJAX('POST /upload/', { file: base64 }, function(response) {
});
});
Created
10. february 2017
Updated
07. january 2020
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com
