This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from MrJarv1s/events
Event Types
- Loading branch information
Showing
22 changed files
with
553 additions
and
38 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
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
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,20 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Animation EventHandling | ||
*/ | ||
|
||
export type Animation = {| | ||
/** | ||
* Handle Animation Start | ||
*/ | ||
+onAnimationStart?: (event: SyntheticAnimationEvent<*>) => mixed, | ||
/** | ||
* Handle Animation End | ||
*/ | ||
+onAnimationEnd?: (event: SyntheticAnimationEvent<*>) => mixed, | ||
/** | ||
* Handle Animation Interation | ||
*/ | ||
+onAnimationIteration?: (event: SyntheticAnimationEvent<*>) => mixed, | ||
|}; |
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,20 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Clipboard EventHandling | ||
*/ | ||
|
||
export type Clipboard = {| | ||
/** | ||
* Handle Copy Event | ||
*/ | ||
+onCopy?: (event: SyntheticClipboardEvent<*>) => mixed, | ||
/** | ||
* Handle Cut Event | ||
*/ | ||
+onCut?: (event: SyntheticClipboardEvent<*>) => mixed, | ||
/** | ||
* Handle Paste Event | ||
*/ | ||
+onPaste?: (event: SyntheticClipboardEvent<*>) => mixed, | ||
|}; |
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,20 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Composition EventHandling | ||
*/ | ||
|
||
export type Composition = {| | ||
/** | ||
* Handle Composition Start | ||
*/ | ||
+onCompositionStart?: (event: SyntheticClipboardEvent<*>) => mixed, | ||
/** | ||
* Handle Composition End | ||
*/ | ||
+onCompositionEnd?: (event: SyntheticClipboardEvent<*>) => mixed, | ||
/** | ||
* Handle Composition Update | ||
*/ | ||
+onCompositionUpdate?: (event: SyntheticClipboardEvent<*>) => mixed, | ||
|}; |
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,16 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Focus EventHandling | ||
*/ | ||
|
||
export type Focus = {| | ||
/** | ||
* Handle Blur Event | ||
*/ | ||
+onBlur?: (event: SyntheticFocusEvent<*>) => mixed, | ||
/** | ||
* Handle Focus Event | ||
*/ | ||
+onFocus?: (event: SyntheticFocusEvent<*>) => mixed, | ||
|}; |
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,24 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Form EventHandling | ||
*/ | ||
|
||
export type Form = {| | ||
/** | ||
* Handle Change Event | ||
*/ | ||
+onChange?: (event: SyntheticInputEvent<*>) => mixed, | ||
/** | ||
* Handle Input Event | ||
*/ | ||
+onInput?: (event: SyntheticInputEvent<*>) => mixed, | ||
/** | ||
* Handle Invalid Input Event | ||
*/ | ||
+onInvalid?: (event: SyntheticInputEvent<*>) => mixed, | ||
/** | ||
* Handle Form Submit Event | ||
*/ | ||
+onSubmit?: (event: SyntheticInputEvent<*>) => mixed, | ||
|}; |
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,16 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Image EventHandling | ||
*/ | ||
|
||
export type Image = {| | ||
/** | ||
* Handle Image Loading Event | ||
*/ | ||
+onLoad?: (event: SyntheticEvent<*>) => mixed, | ||
/** | ||
* Handle Image Error Event | ||
*/ | ||
+onError?: (event: SyntheticEvent<*>) => mixed, | ||
|}; |
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,20 @@ | ||
// @flow | ||
|
||
/** | ||
* Type definitions for Keyboard EventHandling | ||
*/ | ||
|
||
export type Keyboard = {| | ||
/** | ||
* Handle Key Down Event | ||
*/ | ||
+onKeyDown?: (event: SyntheticKeyboardEvent<*>) => mixed, | ||
/** | ||
* Handle Key Press Event | ||
*/ | ||
+onKeyPress?: (event: SyntheticKeyboardEvent<*>) => mixed, | ||
/** | ||
* Handle Key Up Event | ||
*/ | ||
+onKeyUp?: (event: SyntheticKeyboardEvent<*>) => mixed, | ||
|}; |
Oops, something went wrong.