aboutsummaryrefslogtreecommitdiffstats
path: root/demos/functional/templates
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2008-06-09 08:25:18 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2008-06-09 08:25:18 +0000
commiteb68232a2538661b0505ca858beb7259d774ee76 (patch)
treef6772254d59e91072cf5e82a9f361fe457ebcc3d /demos/functional/templates
parentd7cde8ae7f7616b315981b8db38534746618555d (diff)
downloadjquery-ui-eb68232a2538661b0505ca858beb7259d774ee76.tar.gz
jquery-ui-eb68232a2538661b0505ca858beb7259d774ee76.zip
Added dialog functional demo
Diffstat (limited to 'demos/functional/templates')
-rw-r--r--demos/functional/templates/ui.dialog.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/demos/functional/templates/ui.dialog.html b/demos/functional/templates/ui.dialog.html
new file mode 100644
index 000000000..75e87b875
--- /dev/null
+++ b/demos/functional/templates/ui.dialog.html
@@ -0,0 +1,34 @@
+<script type="text/javascript">
+
+ var model = {
+
+ renderAt: '#containerDemo',
+
+ title: 'Dialog Demos',
+
+ demos: [
+
+ {
+ title: 'Simple dialog',
+ desc: 'With few lines of code you could build a dialog. You can try more options on the fly!',
+ html: '<div id="dialog">jQuery UI Dialog</div>',
+ destroy: '$("#dialog").dialog("destroy");',
+ options: [
+ { desc: 'Make a simple dialog', source: '$("#dialog").dialog();' },
+ { desc: 'Modal dialog', source: '$("#dialog").dialog({ modal: true });' },
+ { desc: 'Modal dialog with overlay', source: '$("#dialog").dialog({ modal: true, overlay: { opacity: 0.5, background: "black" } });' },
+ { desc: 'With buttons', source: '$("#dialog").dialog({buttons: { "Ok": function() { alert("Ok"); }, "Cancel": function() { $(this).dialog("close"); } }});' },
+ { desc: 'Close the dialog', source: '$("#dialog").dialog("close");' }
+ ]
+ }
+
+ ]
+ };
+
+ $(function(){
+
+ uiRenderDemo(model);
+
+ });
+
+</script> \ No newline at end of file