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
Problem with "title" param in confirm and prompt? #60
Comments
The none working constructors you are mentioning do not exist! If you take another look at the docs, the alertify.confirm(title, message, onok, oncancel);
//overloads:
alertify.confirm(message);
alertify.confirm(message, onok);
alertify.confirm(message, onok, oncancel); and the alertify.prompt(title, message, value, onok, oncancel);
//overloads:
alertify.prompt(message);
alertify.prompt(message, value);
alertify.prompt(message, value, onok);
alertify.prompt(message, value, onok, oncancel); Thanks. |
Thanks, so I can use |
Yes. |
Hello! You can write code like this var confirm = alertify.confirm(title, message, onok);// title don't work confirm.set({'title':'Your title'}); var prompt = alertify.prompt(title, message, value, onok);// title don't work prompt.set({'title':'Your title'}); It works to me |
@sshokko overloads selection is based on parameters count (not type), thus: var confirm = alertify.confirm(title, message, onok); // this matches 3-parameters constructor
// alertify.confirm(message, onok, oncancel);
// while
var confirm = alertify.confirm(title, message, onok, null); //matches 4-parameters constructor
// alertify.confirm(title, message, onok, oncancel); Thanks! |
I tried your example for prompt with a title and I'm having the same issues as above. also, your example has a typo ( missing a comma in example after "prompt title" )
This results in just a Alertifyjs as title. Not as expected. also, the success/error do not get triggered. |
I can't find the typo you mentioned ?
Prompt constructor is different than confirm, See prompt default constructor and overloads. |
I didn't write any vue instruction ? |
@rowej83 Ah, seems you confused this with the Vue wrapper repo. Based on the wrapper code, you should use I see the typo in the README, You may notifier the author about it by opening an issue over there. Thanks. |
Sorry, I did mistaken it for another repo. I added issues on that repo. |
Good for |
I try set
title
please help me.
The text was updated successfully, but these errors were encountered: