File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,24 @@ javaxt.dhtml.Form = function (parent, config) {
23
23
24
24
25
25
/** An array of buttons that will be placed at the bottom of the form
26
- * (e.g. submit, cancel, reset).
26
+ * (e.g. submit, cancel, reset). Example:
27
+ <pre>
28
+ buttons: [
29
+ {
30
+ name: "Submit",
31
+ onclick: function(){
32
+ var values = form.getData();
33
+ //TODO: validate form data
34
+ }
35
+ },
36
+ {
37
+ name: "Reset",
38
+ onclick: function(){
39
+ form.clear();
40
+ }
41
+ }
42
+ ]
43
+ </pre>
27
44
*/
28
45
buttons : [ ] ,
29
46
Original file line number Diff line number Diff line change @@ -56,7 +56,17 @@ javaxt.dhtml.Window = function(parent, config) {
56
56
footer : null ,
57
57
58
58
/** Buttons to put in the footer. Only rendered if no "footer" config is
59
- * defined.
59
+ * defined. Example:
60
+ <pre>
61
+ buttons: [
62
+ {
63
+ name: "OK",
64
+ onclick: function(){
65
+ win.close();
66
+ }
67
+ }
68
+ ]
69
+ </pre>
60
70
*/
61
71
buttons : [ ] ,
62
72
You can’t perform that action at this time.
0 commit comments