I'm using one of the standard themes (redmond) provided on the jQuery UI website.
I noticed that it ships with an icon png file with red icons as well as the blue coloured ones. I need to display a warning dialog box but make it use the red icons instead.
I notice in the theme's stylesheet there's a section called "Interaction Cues". Do I just set my dialogClass
to ui-state-error
which seems to have the desired effect, is this the correct way to do this?
I tried setting dialogClass: "error"
but that had no effect.
Yep you have it right, you need the full class name:
$("div").dialog({ dialogClass: "ui-state-error" });
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.