<!DOCTYPE HTML>
<html lang=
"en"
>
<head>
<meta charset=
"utf-8"
>
<title>Demo: Dialog</title>
<link rel=
"stylesheet"
href=
"dijit/themes/claro/claro.css"
>
<script src=
"dojo/dojo.js"
data-dojo-config=
"async: true, parseOnLoad: true"
></script>
<script>
require([
"dojo/parser"
,
"dijit/Dialog"
,
"dijit/form/Button"
,
"dijit/form/TextBox"
,
"dijit/form/DateTextBox"
,
"dijit/form/TimeTextBox"
]);
</script>
</head>
<body
class
=
"claro"
>
<div data-dojo-type=
"dijit/Dialog"
data-dojo-id=
"myFormDialog"
title=
"Form Dialog"
execute=
"alert('submitted args:\n' + dojo.toJson(arguments[0], true));"
>
<div
class
=
"dijitDialogPaneContentArea"
>
<table>
<tr>
<td><
label
for
=
"name"
>Name: </
label
></td>
<td><input data-dojo-type=
"dijit/form/TextBox"
type=
"text"
name=
"name"
id=
"name"
></td>
</tr>
<tr>
<td><
label
for
=
"loc"
>Location: </
label
></td>
<td><input data-dojo-type=
"dijit/form/TextBox"
type=
"text"
name=
"loc"
id=
"loc"
></td>
</tr>
<tr>
<td><
label
for
=
"sdate"
>Start date: </
label
></td>
<td><input data-dojo-type=
"dijit/form/DateTextBox"
data-dojo-id=
"myStartDate"
onChange=
"myEndDate.constraints.min = arguments[0];"
type=
"text"
name=
"sdate"
id=
"sdate"
></td>
</tr>
<tr>
<td><
label
for
=
"edate"
>End date: </
label
></td>
<td><input data-dojo-type=
"dijit/form/DateTextBox"
data-dojo-id=
"myEndDate"
onChange=
"myStartDate.constraints.max = arguments[0];"
type=
"text"
name=
"edate"
id=
"edate"
></td>
</tr>
<tr>
<td><
label
for
=
"time"
>Time: </
label
></td>
<td><input data-dojo-type=
"dijit/form/TimeTextBox"
type=
"text"
name=
"time"
id=
"time"
></td>
</tr>
<tr>
<td><
label
for
=
"desc"
>Description: </
label
></td>
<td><input data-dojo-type=
"dijit/form/TextBox"
type=
"text"
name=
"desc"
id=
"desc"
></td>
</tr>
</table>
</div>
<div
class
=
"dijitDialogPaneActionBar"
>
<button data-dojo-type=
"dijit/form/Button"
type=
"submit"
onClick=
"return myFormDialog.isValid();"
>
OK
</button>
<button data-dojo-type=
"dijit/form/Button"
type=
"button"
onClick=
"myFormDialog.hide()"
>
Cancel
</button>
</div>
</div>
<button id=
"buttonThree"
data-dojo-type=
"dijit/form/Button"
type=
"button"
onClick=
"myFormDialog.show();"
>
Show me!
</button>
</body>
</html>