Web Development with jQuery®

(Elliott) #1

Appendix P (^) ❘ 603
title Specifi es the title of the dialog. The title
can also be specifi ed by the title
attribute on the dialog source element.
Default value: null
String
width The width of the dialog, in pixels.
Default value: 300
Number
DIALOG EVENTS
OPTION DESCRIPTION VALUE
beforeClose
bind('dialogbeforeclose')
on('dialogbeforeclose')
A function that’s executed before a
dialog is closed.
function
(event, ui)
close
bind('dialogclose')
on('dialogclose')
A function that’s executed when a
dialog is closed.
function
(event, ui)
create
bind('dialogcreate')
on('dialogcreate')
A function that’s executed when a
dialog is created.
function
(event, ui)
drag
bind('dialogdrag')
on('dialogdrag')
A function that’s executed while a dialog
is dragged.
function
(event, ui)
dragStart
bind('dialogdragstart')
on('dialogdragstart')
A function that’s executed when a
dialog is at the beginning of a dialog
drag.
function
(event, ui)
dragStop
bind('dialogdragstop')
on('dialogdragstop')
A function that’s executed when a
dialog drag ends.
function
(event, ui)
focus
bind('dialogfocus')
on('dialogfocus')
A function that’s executed at the dialog
focus event. The function gets passed
two arguments in accordance with the
triggerHandler interface. The data
passed is the focused dialog options
object.
function
(event, ui)
continues
http://www.it-ebooks.info

Free download pdf