Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
An HTML5 spec-compliant <dialog> polyfill built with Angular 1.x.
Copyright © 2016 Ayogo Health Inc.
dialog
elements via Angular directiveshow()
, showModal()
, close()
, returnValue
)dialog
support in ChromeTo get started, install the package from npm: npm install ay-dialog
Add a script tag to your page to reference the dialog.js file:
<script src="node_modules/ay-dialog/dialog.js"></script>
Reference the module in your Angular app's dependencies:
angular.module(myApp, ['ayDialog'])
Reference the module in your Angular app's dependencies:
var ayDialog = require('ay-dialog').default;
angular.module(myApp, [ayDialog])
Reference the module in your Angular app's dependencies:
import ayDialog from 'ay-dialog';
angular.module(myApp, [ayDialog])
A TypeScript module definition is included, which also provides typings for the HTMLDialogElement interface.
It's not possible to implement the backdrop as a pseudo-element (as it is in native implementations), so the backdrop is added as a sibling element with a .backdrop
class.
Note that you need two separate selectors to support both .backdrop
and ::backdrop
, otherwise browsers that don't recognize the pseudo-element will skip the CSS block entirely!
dialog + .backdrop {
background: rgba(1, 0, 0, 0.1);
}
dialog::backdrop {
background: rgba(1, 0, 0, 0.1);
}
Released under the terms of the MIT License.
FAQs
An HTML5 spec-compliant <dialog> polyfill.
The npm package ay-dialog receives a total of 1 weekly downloads. As such, ay-dialog popularity was classified as not popular.
We found that ay-dialog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.