How to use the nativescript-fancyalert.TNSFancyAlert.showCustomTextAttributes 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
greenRange
      );

      let underline = nsString.rangeOfStringOptions(
        "too!",
        NSCaseInsensitiveSearch
      );
      subTitle.addAttributeValueRange(
        NSUnderlineStyleAttributeName,
        NSUnderlineStyleSingle,
        underline
      );

      return subTitle;
    };
    TNSFancyAlert.showCustomTextAttributes(
      textAttribution,
      new TNSFancyAlertButton({
        label: "Wow, ok.",
        action: (value: any) => {
          console.log(`Clicked ok.`);
        }
      }),
      undefined,
      undefined,
      "Custom text color?",
      `Yep, that can be done too!`,
      null
    );
  }