How to use the nativescript-fancyalert.TNSFancyAlert.showTextField 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 showTextField() {
    TNSFancyAlert.showTextField(
      "Enter your name",
      "",
      new TNSFancyAlertButton({
        label: "Save",
        action: (value: any) => {
          console.log(`User entered ${value}`);
        }
      }),
      undefined,
      undefined,
      "User Input?",
      `Yeah, sure we can.`,
      "Ok, lots of options."
    );
  }
github EddyVerbruggen / nativescript-pluginshowcase / app / feedback / helpers / fancyalert-helper.ts View on Github external
showTextField(): void {
    let initialValue = null;
    TNSFancyAlert.showTextField('Enter your name', initialValue, new TNSFancyAlertButton({
      label: "Done",
      action: (value: any) => {
        alert({
          title: "User entered:",
          message: value,
          okButtonText: "Correct ;)"
        });
      }
    }), undefined, undefined, "What's you name", ".. if you have one", "Dismiss");
  }