#2433 closed enhancement (fixed)
Ability to pass a class name to a Dialog
Reported by: | natecavanaugh | Owned by: | rdworth |
---|---|---|---|
Priority: | minor | Milestone: | 1.5 |
Component: | ui.dialog | Version: | 1.5b4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It would be great if for dialogs you had the ability to pass a css class name that would be applied to the outermost container of the dialog.
This simple ability would allow you to give different dialogs different looks and feels based on whatever class name you passed in. I would also allow either the passing in of an array, or multiple space separated classes so that you can further namespace it.
For example, let's say you have an alert dialog, but it's also an alert that passes in a warning. You could do cssClass: 'alert warning' or cssClass: ['alert', 'warning'].
Space separated classes are generally better for maintenance rather than .warning-alert, .info-alert, etc.
Change History (7)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Owner: | changed from paul to rworth |
---|
comment:3 Changed 15 years ago by
Type: | bug → enhancement |
---|
comment:5 Changed 15 years ago by
Component: | ui.core → ui.dialog |
---|---|
Version: | 1.2.3 → 1.5b4 |
comment:6 Changed 15 years ago by
Milestone: | → 1.5 |
---|---|
Status: | new → accepted |
comment:7 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
This was added (rev [136]) as an option, dialogClass. Example
$(el).dialog({ dialogClass: 'alert warning' });
Whoops, sorry Paul, I meant to mark this as an enhancement.