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

adds callback option #50

Closed
wants to merge 1 commit into from
Closed

adds callback option #50

wants to merge 1 commit into from

Conversation

putchi
Copy link

@putchi putchi commented Jun 22, 2016

If "callback" (function) option isset, it will be called when done printing or when canceling printing.

  • tested and working great.
  • if yow will approve this pull request please update the example :)

If "callback" (function) option isset, it will be called when done printing or when canceling printing.
@CitizenOfRome
Copy link

Thank you very much for taking the time to create this pull request.

The plugin already has the deferred option where you can pass a jQuery Deferred object with multiple callback functions attached.

And because we lack a reliable way to know if the printing failed, the Deferred object is always resolved after the actual printing has been triggered.

Hope this makes sense?

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

Successfully merging this pull request may close these issues.

None yet

2 participants