How to use the nativescript-fancyalert.TNSFancyAlert.showCustomButtons 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
}
      }),
      new TNSFancyAlertButton({
        label: "Four",
        action: () => {
          console.log("Four");
        }
      }),
      new TNSFancyAlertButton({
        label: "Really? More?",
        action: () => {
          console.log("more");
        }
      })
    ];
    TNSFancyAlert.showCustomButtons(
      buttons,
      undefined,
      undefined,
      "Got Buttons?",
      `Add as many as you'd like.`,
      "Ok"
    );
  }