Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@bgoodman/dialog-box
Advanced tools
Popup dialog for displaying information.
npm install @bgoodman/dialog-box
yarn add @bgoodman/dialog-box
<!DOCTYPE html>
<html>
<head>
<title>dialog-box</title>
<script type="module" src="./dist/index.js"></script>
</head>
<body>
<dialog-box open="true" confirm-lbl="Continue">
<div slot="dialog-title">
Title Heading
</div>
<div slot="dialog-content">
Hello, test test test
blah
</div>
</dialog-box>
</body>
</html>
open
(boolean)The dialog is visible when true
. May also be set via the element property open
.
close-on-confirm
(boolean)If true, the dialog will close when the default confirmation button is clicked. Default true
.
confirm-btn
(boolean)If true, the default confirmation button will be rendered. Default true
.
confirm-lbl
(string)Override the default confirmation button label. Default "OK"
.
cancel-btn
(boolean)If true, the default cancellation button will be rendered. Default true
.
cancel-lbl
(string)Override the default cancellation button label. Default "Cancel"
.
"confirmed"
Emitted on click of default confirmation button.
"cancelled"
Emitted on click of default cancel button.
FAQs
Popup dialog for displaying information.
We found that @bgoodman/dialog-box 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.