Skip to content

Commit 55af3b7

Browse files
authored
Merge pull request #3 from vue-generators/feature/update-inside-buttons
added docs for "type" attribute
2 parents 33870dc + 7d7286c commit 55af3b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fields/inside_buttons.md

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You can also add buttons to fields.
1111
| classes | _none_ | `String` | CSS classes for the button |
1212
| label | _none_ | `String` | Caption of the button |
1313
| 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" |
1415

1516
## Example
1617

@@ -42,6 +43,7 @@ The below example uses two buttons to read the location of the user and clear th
4243
{
4344
classes: "btn-clear",
4445
label: "Clear",
46+
type: "reset"
4547
onclick: function(model, field) {
4648
model.address.geo = {
4749
lat: 0,

0 commit comments

Comments
 (0)