summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/JuiControls/Samples/TJuiDialog/Home.page
blob: acf49068fc09c3de0feea0fc8e09e7e3cb2d74ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<com:TContent ID="body">
<h1>TJuiDialog Samples</h1>


<table class="sampletable">

<tr><td class="samplenote">
Simple Dialog:
</td><td class="sampleaction">
<com:TActiveButton
	Text="Open Dialog"
	OnClick="bt1Click"/>
<com:TJuiDialog
    ID="dlg1"
    Options.Title="Simple Dialog"
    Options.AutoOpen="False"
    >
    This is a simple Dialog
</com:TJuiDialog>
</td></tr>

<tr><td class="samplenote">
Modal dialog:
</td><td class="sampleaction">
<com:TActiveButton
	Text="Open Dialog"
	OnClick="bt2Click"/>
<com:TJuiDialog
    ID="dlg2"
    Options.Title="Modal dialog"
    Options.AutoOpen="False"
    Options.Modal="True"
    >
    This is a modal dialog

</com:TJuiDialog>
</td></tr>


<tr><td class="samplenote">
Dialog with buttons:
</td><td class="sampleaction">
<com:TActiveButton
	Text="Open Dialog"
	OnClick="bt3Click"/>
<com:TJuiDialog
    ID="dlg3"
    Options.Title="Dialog with buttons"
    Options.AutoOpen="False"
    >
    This is a dialog with buttons.
    <com:TJuiDialogButton
    	Text="Ok"
    	OnClick="dlg3Ok"
    	/>
    <com:TJuiDialogButton
    	Text="Cancel"
    	OnClick="dlg3Cancel"
    	/>

</com:TJuiDialog>
<com:TActiveLabel ID="lbl3" />
</td></tr>

<tr><td class="samplenote">
Dialog with callbacks:
</td><td class="sampleaction">
<com:TActiveButton
  Text="Open Dialog"
  OnClick="bt4Click"/>
<com:TJuiDialog
    ID="dlg4"
    Options.Width="400"
    Options.Title="Dialog with callbacks"
    Options.AutoOpen="False"
    Options.Position="center center"
    >
    Change dialog options during callback.
    <com:TJuiDialogButton
      Text="change title"
      OnClick="dlg4title"
      />
    <com:TJuiDialogButton
      Text="toggle width"
      OnClick="dlg4width"
      />
    <com:TJuiDialogButton
      Text="toggle position"
      OnClick="dlg4pos"
      />

</com:TJuiDialog>
</td></tr>

</table>

</com:TContent>