Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
modal
Advanced tools
Weekly downloads
Readme
A modal window for the browser.
This module provides generic modal dialog functionality for blocking the UI and obtaining user input.
You need to 'require' this module in a commonJS style environment, and you need to be able to require the things with the .jade extension. I use browserify to do this.
modal([options])[.on('event')]
i
element before button text with the given class(es)Events will be fired on the modal according to which button is clicked. Defaults are confirm/cancel, but these can be overriden in your options.
modal(
{ title: 'Delete object'
, content: 'Are you sure you want to delete this object?'
, buttons:
[ { text: 'Don’t delete', event: 'cancel', keyCodes: [ 27 ] }
, { text: 'Delete', event: 'confirm', className: 'button-danger', iconClassName: 'icon-delete' }
]
})
.on('confirm', deleteItem)
FAQs
A modal window for the browser.
The npm package modal receives a total of 455 weekly downloads. As such, modal popularity was classified as not popular.
We found that modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.