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

Added callback function support on QR image onload event #231

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IvankoRambo
Copy link

@IvankoRambo IvankoRambo commented May 20, 2020

Callback on onload QR image event.
Something that's really intended to be included here.)

Comment on lines +25 to +34
/**
* Fired when QR image element is loaded
* @param {HTMLElement} QR image DOM element
* @param {string} text to generate QR-code image
* @return {void}
*/
callback: function (image, text) {
console.log('text QR code was created from', text);
console.log('loaded image DOM element', image);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn´t work for me!

Copy link
Author

@IvankoRambo IvankoRambo Jul 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @apfjuliano .
What was the exact problem?)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The callback function, It's not been fired on my tests when the QRCode is done

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

Successfully merging this pull request may close these issues.

2 participants