-
Notifications
You must be signed in to change notification settings - Fork 97
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
emodal alert help #31
Comments
Hi, where did you get this example? Events work as a promise! var options = {
message: "The famous question?",
title: 'Header title',
size: eModal.size.sm,
subtitle: 'smaller text header',
label: 'Yes'
};
eModal
.alert(options)
.then(
function(){ alert(1); },
function(){ alert(2); }
); Hope that help, see more examples in example site Http://saribe.github.io/eModal |
Hi, Thanks a lot for your help! That's what I need Now it's work! |
NIce to know, |
Thanks again for your help. Another question: How can I change the colour of the buttons? I have by default: Yes = blue I need Yes = red Thanks var options = {
|
You can do it in multiple ways:
e.g.; var promise = eModal
(.btn class)
Samuel Ribeiro Pinto 2016-01-25 13:50 GMT+00:00 spilxx notifications@github.com:
|
Note: if the ACTION in use, already has buttons (e.g.: prompt), your Samuel Ribeiro Pinto 2016-01-25 15:32 GMT+00:00 Samuel Pinto samuel@maispc.com:
|
[image: Imagem intercalada 2] Samuel Ribeiro Pinto 2016-01-25 15:35 GMT+00:00 Samuel Pinto samuel@maispc.com:
|
Hi Samuel, Thanks again for your time & valuable help. |
Hi saribe, Thanks |
Am I being stupid but I cannot see any way to get the value that is typed into the prompt box. it has no id so I don't know how to reference it. Any help very much appreciated. |
Hello take a look here http://saribe.github.io/eModal/#confirm
Hope it helps
Smiles,
Samuel Pinto
…On Tue, 20 Sept 2022, 09:05 Kevin Kidson, ***@***.***> wrote:
Am I being stupid but I cannot see any way to get the value that is typed
into the prompt box. it has no id so I don't know how to reference it. Any
help very much appreciated.
eModal.prompt(options)
.then(
function () { alert("?? PROMPT VALUE ???"); }
);
—
Reply to this email directly, view it on GitHub
<#31 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAUEJ5H2CIWNEMXHJO3SRDV7FV6JANCNFSM4BZOGPXQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Many many thanks for getting back to me
I have scoured that document before but cannot see where the actual value
that is typed into the text box is returned
As the text-box does not have an ID I have no idea how to get the value
On Fri, Sep 23, 2022 at 5:27 PM Samuel Pinto ***@***.***>
wrote:
… Hello take a look here http://saribe.github.io/eModal/#confirm
Hope it helps
Smiles,
Samuel Pinto
On Tue, 20 Sept 2022, 09:05 Kevin Kidson, ***@***.***> wrote:
> Am I being stupid but I cannot see any way to get the value that is typed
> into the prompt box. it has no id so I don't know how to reference it.
Any
> help very much appreciated.
> eModal.prompt(options)
> .then(
> function () { alert("?? PROMPT VALUE ???"); }
> );
>
> —
> Reply to this email directly, view it on GitHub
> <#31 (comment)>, or
> unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ABAUEJ5H2CIWNEMXHJO3SRDV7FV6JANCNFSM4BZOGPXQ
>
> .
> You are receiving this because you modified the open/close state.Message
> ID: ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#31 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDJABCQMULMCEIB4UNVTU3V7XD7VANCNFSM4BZOGPXQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi,
I don't know how the event works. The follow code does nothing.
What is wrong?
var options = {
message: "The famous question?",
title: 'Header title',
size: eModal.size.sm,
subtitle: 'smaller text header',
label: 'Yes',
callback: function(){alert(1);},
callbackCancel: function(){alert(2);}
};
Thanks
The text was updated successfully, but these errors were encountered: