How to use the nativescript-fancyalert.TNSFancyAlert.showSwitch 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 EddyVerbruggen / nativescript-pluginshowcase / app / feedback / helpers / fancyalert-helper.ts View on Github external
showSwitch(): void {
    TNSFancyAlert.showSwitch("Don't ask me again", '#58B136', new TNSFancyAlertButton({
      label: "Save",
      action: (isSelected: boolean) => {
        console.log(`Don't ask again was selected? ${isSelected}`);
      }
    }), 'switch.png', '#B3714F', 'Need a switch?', `It can be useful.`, 'Got it.');
  }
}
github NathanWalker / nativescript-fancyalert / demo / app / main-view-model.ts View on Github external
public showSwitch() {
    TNSFancyAlert.showSwitch(
      `Don't show again`,
      "#58B136",
      new TNSFancyAlertButton({
        label: "Save",
        action: (isSelected: boolean) => {
          console.log(`Don't show again was selected: ${isSelected}`);
        }
      }),
      "switch.png",
      "#B3714F",
      "Need a switch?",
      `It can be useful.`,
      "Got it."
    );
  }