
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
gooddialogs
Advanced tools
npm install gooddialogs
import 'gooddialogs/dist/base.min.css';
import {goodDialogs} from 'gooddialogs';
import 'gooddialogs/dist/base.min.css';
import {GoodDialogs} from 'gooddialogs';
const goodDialogs = new GoodDialogs('Message');
const resDialog = await goodDialogs.confirm('Message')
const resDialog = await goodDialogs.confirm('Message', {/* Options */})
const resDialog = await goodDialogs.confirm('Mensaje')
Parameter | Type | Explanation |
---|---|---|
alertClass | string | Additional CSS class for the alert. |
alertIn | string | Defines the entry animation for the alert. |
alertOut | string | Defines the exit animation for the alert. |
cancelButtonClass | string | CSS class for the cancellation button. |
cancelButtonText | string | Text for the cancellation button. |
confirmButtonClass | string | CSS class for the confirmation button. |
confirmButtonText | string | Text for the confirmation button. |
containerClass | string | CSS class for the alert container. |
darkForce | boolean | Forces the use of the dark theme. |
divIconClass | string | CSS class for the icon within the alert. |
footerClass | string | CSS class for the alert footer. |
lightForce | boolean | Forces the use of the light theme. |
onConfirm | () => void | Function that executes when the user confirms the alert. |
persistent | boolean | Indicates whether the alert should remain visible until the user manually closes it. |
position | 'top' | 'left' | 'right' | 'center' | 'top-left' | 'top-center' | 'top-right' | Defines the position of the alert on the screen. |
subtitle | string | null | Subtitle of the alert. |
theme | OptionTheme | Theme of the alert, defined by OptionTheme . |
timer | number | null | Sets the time in milliseconds before the alert automatically closes. |
title | string | null | Title of the alert. |
FAQs
good dialogs and notifications
The npm package gooddialogs receives a total of 8 weekly downloads. As such, gooddialogs popularity was classified as not popular.
We found that gooddialogs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.