How to use the nativescript-fancyalert.TNSFancyAlert.showSuccess function in nativescript-fancyalert

To help you get started, we’ve selected a few nativescript-fancyalert examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NathanWalker / nativescript-fancyalert / demo / app / main-view-model.ts View on Github external
public showSuccessCustomEffects() {
    if (isIOS) {
      TNSFancyAlert.showAnimationType =
        TNSFancyAlert.SHOW_ANIMATION_TYPES.SlideInFromLeft;
      TNSFancyAlert.hideAnimationType =
        TNSFancyAlert.HIDE_ANIMATION_TYPES.SlideOutToRight;
      TNSFancyAlert.backgroundType = TNSFancyAlert.BACKGROUND_TYPES.Blur;
      TNSFancyAlert.soundURL = "bell.mp3";
      TNSFancyAlert.showSuccess(
        "Sound?",
        "You can use sound and customize many aspects like animation in/out, color, background style and much more.",
        "Amazing!"
      );
      this.reset();
    }
  }
github EddyVerbruggen / nativescript-pluginshowcase / app / feedback / helpers / fancyalert-helper.ts View on Github external
showSuccess(): void {
    TNSFancyAlert.showSuccess("Success!", "You were able to press a button. Impressive stuff mate!", "Thanks :)");
  }
github NathanWalker / nativescript-fancyalert / demo / app / main-view-model.ts View on Github external
public showCustomWidth() {
    TNSFancyAlert.showSuccess(
      "Success!",
      "This uses a custom width of 300.",
      `Oh that's nice.`,
      0,
      300
    );
  }
github NathanWalker / nativescript-fancyalert / demo / app / main-view-model.ts View on Github external
public showSuccessDelay() {
    TNSFancyAlert.showSuccess(
      "Success!",
      "Fancy alerts are nice. This will disappear in 5 seconds.",
      "Close Now!",
      5
    );
  }
github NathanWalker / nativescript-fancyalert / demo / app / main-view-model.ts View on Github external
public showSuccess() {
    TNSFancyAlert.showSuccess(
      "Success!",
      "Fancy alerts are nice.",
      "Yes they are!"
    );
  }