-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8a29c
commit ae2dfeb
Showing
5 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
'*': npm run lint:fs && npm run lint:editorconfig | ||
'*.{json,md,yml,js,ts,d.ts}': prettier --write, | ||
'*.ts': npm run lint:ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# autogenerated | ||
CHANGELOG.md |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,21 @@ npm install form-payload | |
<form name="general"> | ||
<label> | ||
Name | ||
<input type="text" name="name" value="Jon"> | ||
<input type="text" name="name" value="Jon" /> | ||
</label> | ||
<label> | ||
Birthday | ||
<input type="date" name="birthday" value="2021-03-27"> | ||
<input type="date" name="birthday" value="2021-03-27" /> | ||
</label> | ||
<label> | ||
Friends Count | ||
<input type="number" name="friendsCount" value="1"> | ||
<input type="number" name="friendsCount" value="1" /> | ||
</label> | ||
<fieldset name="friend"> | ||
<legend>Friend</legend> | ||
<label> | ||
Friend Name | ||
<input type="test" name="friendName" value="Kate"> | ||
<input type="test" name="friendName" value="Kate" /> | ||
</label> | ||
</fieldset> | ||
<button type="submit">Submit</button> | ||
|
@@ -44,7 +44,7 @@ npm install form-payload | |
<form name="mailing"> | ||
<label> | ||
Mailing | ||
<input type="email" name="mail" name="[email protected]"> | ||
<input type="email" name="mail" name="[email protected]" /> | ||
</label> | ||
</form> | ||
``` | ||
|
@@ -73,12 +73,11 @@ mailingFormNode.addEventListener('change', (evt) => { | |
console.log(getControlValue(evt.target)); | ||
// '[email protected]' | ||
}); | ||
|
||
``` | ||
|
||
## With Frameworks | ||
|
||
*It doesn't matter which framework you use, you just need to pass the valid [HTMLFormElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement).* | ||
_It doesn't matter which framework you use, you just need to pass the valid [HTMLFormElement](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement)._ | ||
|
||
### React | ||
|
||
|