Skip to content
This repository has been archived by the owner on Nov 13, 2017. It is now read-only.

Settings

tornqvist edited this page Apr 25, 2012 · 3 revisions

content

A string or jQuery object to be inserted as content in the dialog. This supersedes both the url and href attributes.

url

A string to an external resource. A hash can be applied to fetch specific section of the resource.

speed

An integer. The speed at which the animations will run. To keep down on overhead, no effort is made to check that this conforms with what is set in the CSS, please see to that it does.

escape

A boolean. Weather the dialog should be closed on escape key being pressed.

role

A string that defines the aria attribute that will be assigned to the dialog. Preferably dialog or alertdialog.

closeText

String that describes the close button.

loadText

String that describes the loading process.

label

A string that will be assigned as an ID (if there already is none) for the "assumed" label of the dialog.

appearence

A string that describes the animation direction. Takes four values: top,bottom,left and right. If nullor any other, non-supported string, is supplied, the dialog will simply just appear. Thus can be utilized to add custom animations with CSS. See the examples.

applyClass

A string that will be assigned as class on the dialog for special purpose styling and whatnot.

request

A string ('GET' or 'POST') that sets the AJAX request method. Also accepts an object (data to be sent with request)

onOpen

A function that will run as soon as the dialog is available in the DOM (but not yet in view).

onLoad

A function that will run as soon as the dialog content in loaded.

onClose

A function that will run as the dialog close.

animType

A string defining whether to use CSS or JavaScript (jQuery) for animation. Accepts css and animate.

visualLoad

A boolean. Whether to show dialog before content is loaded.

center

A boolen. Whether to vertically center dialog in window (if there's room).

Clone this wiki locally