Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
dile-confirm
Advanced tools
This package has moved and is now available at @dile/dile-confirm. Please update your dependencies. This repository is no longer maintained.
This is a Web Component to implement a modal confirm box, based on LitElement.
Let's go to DEMOS page!
Install it from npm:
npm i dile-confirm
Place the script In your HTML page or include the dile-confirm.js file in your JS bundle. After that you can use the dile-confirm tag, like this:
<dile-confirm id="myModal">
<p>
Delete this file?
</p>
</dile-confirm>
Whatever you place inside the <dile-confirm>
tag will be the content displayed when the modal box opens.
In addition, the confirm box display two buttons inside the modal interface:
These are the dile-confirm CSS custom properties. (But remember, you can customize the modal box interface also by using the CSS custom properties of the dile-modal component)
Custom property | Description | Default |
---|---|---|
--dile-confirm-accept-button-color | Accept button background color | #007bff |
--dile-confirm-cancel-button-color | Cancel button background color | #dc3545 |
--dile-confirm-accept-text-button-color | Accept button text color | #fff |
--dile-confirm-cancel-text-button-color | Cancel button text color | #fff |
--dile-confirm-border-radius-button | Button border radius | 5px |
--dile-confirm-padding-button | Button padding | 7px |
--dile-confirm-font-size-button | Button font size | 1em |
--dile-confirm-buttons-text-align | Buttons element text align | right |
--dile-confirm-text-transform | Button text transformation | uppercase |
--dile-confirm-buttons-margin-top | Confirm buttons section margin-top | 10px |
--dile-confirm-buttons-margin-bottom | Confirm buttons section margin-bottom | 10px |
--dile-confirm-buttons-margin-left | Confirm buttons section margin-left | 0 |
--dile-confirm-buttons-margin-right | Confirm buttons section margin-right | 0 |
FAQs
Confirm modal box based on LitElement.
The npm package dile-confirm receives a total of 13 weekly downloads. As such, dile-confirm popularity was classified as not popular.
We found that dile-confirm 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.