Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dialogsjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dialogsjs

Diálogos para web. Alerta, confirmações, aguardando, menu, etc.

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-81.13%
Maintainers
1
Weekly downloads
 
Created
Source

Dialogs

Dialogs for web and mobile

Dependency

jQuery

Usage

Simple and beautiful.

Install

Using bower

bower install geidsonbc/dialogs --save

or npm

npm install dialogsjs

or yarn

yarn add dialogsjs

Setup

Include:

<script src="{your-url}/dialogs.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="{your-url}/dialogs.min.css">

Methods

  1. dialog.waiting('Message');

  2. dialog.confirm('Title', 'Message', function(){ // confirm }, function(){ // cancel });

  3. dialog.prompt('Title', 'Message', 'Label', 'Selector', function(){ // done }, function(){ // cancel });

  4. dialog.modal('Title', 'Message', function(){ ... });

  5. dialog.info('Title', 'Message', function(){ ... });

  6. dialog.help('Title', 'Message', { class: ..., func: ... });

  7. dialog.menu('Title', [{ value: ..., label: ... }, ... ], function(e){ ... } );

  8. dialog.close('Type');

Examples

  1. Info
dialog.info('Titulo', 'Corpo', function() {
	alert('callback');
});
  1. Confirm
dialog.confirm({
	title: 'Titulo',
	message: 'Corpo',
	confirm: {
		label: 'SIM',
		event: function() {
			alert('callback');
		}
	},
	cancel: {
		label: 'NÃO',
		event: function() {
			alert('callback');
		}
	}
});

Contributing

  1. Fork it!
  2. Create a new branch
  3. Commit your changes
  4. Push to the branch
  5. Submit a pull request :D

License

Licensed under the MIT License.

Keywords

FAQs

Package last updated on 25 Apr 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