nice-dialogs
Awesome replace for alert, confirm & prompt js commands.
This is built with Electron usage in mind, but should flawlessy work on any modern browser that support the dialog element. The module is tested only on Electron. Open an issue if you find bugs on some other browser engine.
Templates use CSS classes from Photon. However, Photon css file are not included, so you can style it whatever you whant.
We provide only the commonjs module. If you want to use it in a browser, you can use browserify to bundle it with your code. Be sure to include brfs transform, because assets are read using
fs.readFileSync
and you want to include their content in your bundle.
Example of dialogs when styled using Photon
Installation
npm install --save nice-dialogs
Usage
const dialogs = ; dialogs // true/false dialogs // always true
License
MIT License.
Copyright (c) 2015 Andrea Parodi