Bug Tracker

Modify

Ticket #2433 (closed enhancement: invalid)

Opened 5 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

comment:1 Changed 5 years ago by natecavanaug

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

comment:2 Changed 5 years ago by paul

  • Owner changed from paul to rworth

comment:3 Changed 5 years ago by scott.gonzal

  • Type changed from bug to enhancement

comment:4 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

 http://dev.jqueryui.com

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.