Opened 12 years ago
Closed 12 years ago
#7998 closed enhancement (wontfix)
Allow event name in dialog buttons "click"
Reported by: | AlexW | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.dialog | Version: | 1.8.16 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Allow the use of an event name in the click property.
$('#dialog') .bind('dialogevent', function() {}) .dialog({
buttons: [
{text: 'Button', click: 'event'}
]
});
instead of needing to do,
{text: 'Button', click: function() { $(this).trigger('dialogevent'); }}
Note: See
TracTickets for help on using
tickets.
This proposal doesn't even make sense. You want strings to be converted to events? Use a named function.