-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Display a themed modal alert #1012
Comments
Good idea, added as a feature request here: |
I needed (well, wanted) this feature myself for the project I am working on. Here is what I came up with. It is not a jQM widget (yet), but I am looking into doing that. It simply uses the popup widget, so the chaining issues do apply on it. Also uses the button widget. It's a quick solution to a simple problem, so please look at it as such. I hope it helps. The most basic call is jqmAlert( messageString ); However, it accepts a second argument, which must be an object. In that object you can overwrite your default settings. But maybe most importantly, you can pass a callback function (buttonAction) to be called when the user hits the OK button. .jqmAlert
{
padding: 1em;
text-align: center;
min-width: 8em;
max-width: 20em;
font-weight: bold;
}
.jqmAlertMessage
{
margin-bottom: 1.5em;
}
|
I'd like some way to display a modal alert using JQuery Mobile.
I don't know if there is an issue for it but I found a forum post here asking for the same feature - http://forum.jquery.com/topic/alert-modal-component
The text was updated successfully, but these errors were encountered: