confirm(content, options)
Opens a modal dialog with two buttons (ok/cancel for example)
content
- If the content is a string, it will be the message displayed in the dialog (HTML code)
- If the content is an hash map, it will be used for setting content with an AJAX request. The hashmap must have url key and an optional options key (ajax options request)
options
Hash map of dialog options, here is the key list:
Key-------------------
Default---
Description
top __________________null____Top position
left __________________null____Left position
okLabel _______________Ok____Ok button label
cancelLabel __________Cancel__Cancel button label
onOk ________________none___Ok callback function called on ok button
onCancel _____________none__Cancel callback function called on ok button
buttonClass ___________none__Ok/Cancel button css class name
All window parameters __none__Add all window constructor options
Partager