Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set a Jquery dialog title bar style

I want that some of my jquery dialogs, not all, have a different title bar color. How can I acheive this? I used the property dialogClass:"myClass" in desired dialogs but this doesen't change the title bar, just the dialog body.

Thank you!!

like image 892
anmarti Avatar asked Nov 30 '22 23:11

anmarti


1 Answers

Specifying a dialogClass adds this class to the outermost div wrapping the entire dialog including the title bar, so you just have to make sure that you CSS rule is targeting the correct element. For instance:

.myDialogClass .ui-widget-header {
  background: purple;
}
like image 155
Gustav Barkefors Avatar answered Dec 04 '22 11:12

Gustav Barkefors