-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] - Add Prompt Dialog #42
Comments
Hi @erropix , Thanks for the suggestion, I will consider adding a new method (e.g. the method name could be " Thanks, |
Added: `Notiflix.Confirm.*` module: The `.prompt()` method has been added. ([#42](#42)) - `Notiflix.Confirm.prompt()` method works similarly as `window.prompt()`. The client doesn't have to type a correct answer to the input element to proceed unlike the `Notiflix.Confirm.ask()` method. The client answer passes to the callback functions as a parameter and this parameter is always a `string`. Added: `Notiflix.Loading.*` module: The `customSvgCode` option has been added for `Notiflix.Loading.custom();` method. The default is `null`. A text-based (`string`) SVG icon can be set to this option. Single quotation marks should be avoided. Fixed: `index.d.ts`: `IConfirmOptions` interface: `zindex` property type has been fixed. Removed: `index.d.ts`: Following types have been removed: - `TNotiflixCallback` - `TNotifyCallbackOrOptions` - `TReportCallbackOrOptions` - `TLoadingMessageOrOptions` - `TBlockMessageOrOptions` - `TBlockSelectorOrHTMLElements` Added: `index.d.ts`: Namespaces, Functions, and Interfaces: Comments have been added for IntelliSense. Changed: Code Review/Refactor.
Hi @erropix Notiflix v3.2.0 has been released. You can use Thanks, |
Thank you so much @furcan for the quick update :) |
Hi @erropix , You are welcome 😊 Have a nice week, |
Is your feature request related to a problem? Please describe.
Yes, the
Notiflix.Confirm.ask()
function doesn't allow the user to provide answers other than the defined correct answer.Describe the solution you'd like
If you can change the library to accept any value and pass it to the button callbacks, it will serve as an equivalent for the native browser prompt.
Describe alternatives you've considered
The native browser prompt https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_prompt
The text was updated successfully, but these errors were encountered: