JSPM

@nativescript-community/ui-material-dialogs

7.2.71
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 53
  • Score
    100M100P100Q79008F
  • License Apache-2.0

Material Design Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nativescript-community/ui-material-dialogs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    NativeScript Material Dialogs

    Material Design's Dialogs component for NativeScript.

    npm npm

    Contents

    1. Installation
    2. Changelog
    3. FAQ
    4. Usage

    Installation

    For NativeScript 7.0+

    • tns plugin add @nativescript-community/ui-material-dialogs

    For NativeScript 6.x

    • tns plugin add nativescript-material-dialogs

    If using tns-core-modules

    • tns plugin add nativescript-material-dialogs@2.5.4

    Be sure to run a new build after adding plugins to avoid any issues.

    Changelog

    FAQ

    Usage

    Uses the same API as NativeScript Dialogs.

    Adds one option for alert:

    • view : can be a NativeScript View or a path to to XML component. The custom view will be added to the dialog. Possibilities become endless.

    TS

    import { login, alert, prompt } from "@nativescript-community/ui-material-dialogs";
    
    alert("Your message").then(()=> {
        console.log("Dialog closed!");
    });