We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 33870dc + 7d7286c commit 55af3b7Copy full SHA for 55af3b7
fields/inside_buttons.md
@@ -11,6 +11,7 @@ You can also add buttons to fields.
11
| classes | _none_ | `String` | CSS classes for the button |
12
| label | _none_ | `String` | Caption of the button |
13
| onclick | _none_ | `Function(model, field)` | Triggered when click on the button |
14
+| type | "button" | `String` | The HTML "type" attribute for the button, defaults to "button" |
15
16
## Example
17
@@ -42,6 +43,7 @@ The below example uses two buttons to read the location of the user and clear th
42
43
{
44
classes: "btn-clear",
45
label: "Clear",
46
+ type: "reset"
47
onclick: function(model, field) {
48
model.address.geo = {
49
lat: 0,
0 commit comments