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

How to get data url in typescript when Qrcode created ? #14

Open
tearforfear007 opened this issue Feb 8, 2018 · 4 comments
Open

How to get data url in typescript when Qrcode created ? #14

tearforfear007 opened this issue Feb 8, 2018 · 4 comments

Comments

@tearforfear007
Copy link

tearforfear007 commented Feb 8, 2018

Can we have a function to call to get current generated QR-code data URL?

@mautematico
Copy link
Contributor

mautematico commented Feb 9, 2018

by "current generated qrcode" do you mean the bitmap?
If so, please take a look to #8

@MrGallen
Copy link

Any luck with this?

@Warriormuffin
Copy link

Warriormuffin commented Mar 17, 2018

Any chance of a proper property bind to the src url that is generated from this? Being able to do something like this "#qrCode" rc would be nice. Need to use this qrcode in jsreports documents

@nikkhielseath
Copy link

@Warriormuffin and @tearforfear007

Actually, this library creates an img tag from a data-url. I believe you should be able to read its source and use the generated QRCode in other places.

Also, since, this library is a wrapper over the node-qrcode library, you may be able to get the desired functionality.
https://www.npmjs.com/package/qrcode#todataurltext-options-cberror-url

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

No branches or pull requests

5 participants