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

Introduce the onNotify event #711

Closed
tsv2013 opened this issue Mar 24, 2020 · 0 comments
Closed

Introduce the onNotify event #711

tsv2013 opened this issue Mar 24, 2020 · 0 comments

Comments

@tsv2013
Copy link
Member

@tsv2013 tsv2013 commented Mar 24, 2020

This event can be used to override the end-user notifications: instead of the default alert() function the option.message can be show via custom notification library

  /**
   * The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
   * In case of any subscriptions to this event all notifications will be redirected into the event handler.
   * <br/> options.message is a message to show.
   */
  public onNotify: Survey.Event<
    (sender: SurveyCreator, options: any) => any,
    any
  > = new Survey.Event<(sender: SurveyCreator, options: any) => any, any>();
@tsv2013 tsv2013 added the enhancement label Mar 24, 2020
@tsv2013 tsv2013 added this to the v1.5.17 milestone Mar 24, 2020
tsv2013 pushed a commit that referenced this issue Mar 24, 2020
@tsv2013 tsv2013 added the Implemented label Mar 24, 2020
@tsv2013 tsv2013 closed this Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.