Skip to main content

Bug Tracker

Side navigation

#2433 closed enhancement (invalid)

Opened February 29, 2008 02:43AM UTC

Closed July 11, 2010 06:37PM UTC

Ability to pass a class name to a Dialog

Reported by: natecavanaugh Owned by: rworth
Priority: minor Milestone: 1.2.4
Component: ui Version: 1.2.3
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.

Attachments (0)
Change History (4)

Changed February 29, 2008 02:44AM UTC by natecavanaug comment:1

Whoops, sorry Paul, I meant to mark this as an enhancement.

Changed February 29, 2008 10:53AM UTC by paul comment:2

owner: paulrworth

Changed February 29, 2008 02:56PM UTC by scott.gonzal comment:3

type: bugenhancement

Changed July 11, 2010 06:37PM UTC by dmethvin comment:4

resolution: → invalid
status: newclosed

This should be filed in the UI bug tracker if still relevant.

http://dev.jqueryui.com