Installation
tns plugin add nativescript-popup
Screenshots
Usage
;
API
Constructor
Popup(options: PopupOptions)
Constructor Example
; const opts: PopupOptions = backgroundColor: "white" | "#fff" height: 100 width: 100 unit: "dp" | "px" | "%" elevation: 10 // android only borderRadius: 25 // android only; const popup = opts;
Popup Methods
Method | Description |
---|---|
showPopup(source: any, view: any): Promise |
Shows the popup anchored to the source argument with the view argument as the popup contents. The view argument can be a native Android/iOS view, a NativeScript View, or a string path to a template within the app directory. |
hidePopup(data?: any): Promise |
Hides the popup and removes it from the view hierarchy. |
License
Apache License Version 2.0, January 2004