New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nat-modal

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nat-modal

Nat.js module for weex: Modal (dialog)

  • 1.0.1-alpha
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
2
Weekly downloads
 
Created
Source

nat-modal

  • Documentation
  • Github

Installation

weexpack plugin add nat-modal
npm i natjs

Usage

Use in weex project (.vue/.we)

<script>
import Nat from 'natjs'

// alert
Nat.alert('Hello Nat!')

// confirm
Nat.confirm('This is a confirm dialog with callback', (err, ret) => {
    console.log((ret) ? 'confirmed' : 'canceled')
})

// prompt
Nat.prompt('This is a prompt dialog with callback', (err, ret) => {
    console.log((ret.result) ? 'prompted\n' + ret.data : 'canceled')
})

// toast
Nat.toast('Hello Nat!')

</script>

See the Nat Documentation for more details.

Keywords

FAQs

Package last updated on 20 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc