Abel Regalado
be8775d4b9
[docs] Add missing events to docs/events page ( #2123 )
* [docs] Add missing evens to docs/events page
Added missing `onReset` event to Form Events –– (https://reactjs.org/docs/events.html#form-events )
Created Generic Events subsection, and added `onError` & `onLoad` events –– (https://reactjs.org/docs/events.html#generic-events )
Based on @sophiebits suggestion in following thread:
https://github.com/facebook/react/issues/1718#issuecomment-122622933
* [docs] Add event subsection to #supported-events
Added Generic Events subsection under Supported Events (https://reactjs.org/docs/events.html#supported-events )
5 years ago
Steve Dodier-Lazaro
2c8f5695ba
Add reference to persist to SyntheticEvent's API ( #2274 )
Since persist() is referred to in the doc as a method for disabling event pooling, that must mean it's part of the SyntheticEvent API.
I'm proposing to state it more explicitly so that there's no doubt for newcomers like me whether it is the SyntheticEvent or the actual JS event that has the method.
5 years ago
Nat Alison
25df15b83e
reapply, correctly generating links
6 years ago
Nat Alison
dc1e5366e3
revert id adding
6 years ago
Nat Alison
3e49e971d0
add everything else again
6 years ago
Moti Zilberman
e5c3a9e4f0
Pointer events: Document tangentialPressure, twist ( #1118 )
Added to `SyntheticPointerEvent` in https://github.com/facebook/react/pull/13374
6 years ago
Philipp Spiess
a1f41f65a2
Don’t recommend PEP because it lacks features
7 years ago
Philipp Spiess
988a67739d
Add section about Pointer Events
This PR adds a section about the state of Pointer Events in React.
This should be merged only if facebook/react#12507 is accepted as well.
7 years ago
Brian Vaughn
93aa551f1a
Reorganized 'docs' folder
7 years ago
Vicky Chijwani
f8dceef015
Docs: add link to DOM Level 3 spec for possible values of `key` prop ( #11042 )
7 years ago
Brian Vaughn
52b694eaae
Add new docs website ( #10896 )
Adds a new docs website, built with Gatsby JS, to replace the old Jekyll site. Source code for the new site lives in /www (although markdown and YML data still comes from the legacy /docs folder).
Changes to either markdown or website source code can be previewed on Netlify. The react-js bot should automatically add comments to each PR with preview links. (This preview is generated by running the newly-added yarn build:docs command in the root package.json.)
The majority of the changes in this PR are contained within the new /www directory. However some minor modifications have been made to existing content in the /docs directory:
* Modified frontmatter author block to always be an array
* Small markdown formatting tweaks
7 years ago
Tyler Deitz
5b83555b6c
Update reference-events.md ( #10554 )
7 years ago
Diego Muracciole
7c7b511c37
Add onToggle event to details tag ( #8831 )
* Add onToggle event to details tag
Fixes #8761
* Map onToggle event on ReactDOMFiberComponent
* Tweak doc
* Trap events on setInitialProperties for details tag
8 years ago
Dan Abramov
74eac9addd
Tweak Forms
8 years ago
Oskari Mantere
97a1b89a94
Replace vars with let and const ( #8051 )
8 years ago
Kevin Lacker
aa9544bfac
New Documentation
8 years ago
Nik Nyby
557f06e044
docs: re-position comments to account for code sample width ( #7602 )
8 years ago
Daniel Lo Nigro
d457201862
Upgrade to Jekyll 3
Full list of changes is at https://jekyllrb.com/docs/upgrading/2-to-3/ . The tl;dr of it is:
- Relative permalinks were removed, so all the files in the `docs` subdirectory need their permalink to be prefixed with `docs/`
- `post` and `page` types were renamed to `posts` and `pages` respectively
- `jekyll-paginate`, `pygments` and `redcarpet` are all now optional, so I needed to explicitly add it to the Gemfile. Jekyll now uses `rouge` rather than `pygments` for syntax highlighting, but rouge does not support highlighting individual lines (`hl_lines`) so we need to continue using Pygments.
- Layout metadata (eg. `sectionid`) is now on a `layout` variable rather than `page`
Tested the following pages and confirmed that they all work:
- "Docs" link (getting started page): http://127.0.0.1:4000/react/docs/getting-started.html
- Downloads: http://127.0.0.1:4000/react/downloads.html
- Tutorial: http://127.0.0.1:4000/react/docs/tutorial.html
- A few pages under the "docs" subdirectory, to confirm they're working properly:
- http://127.0.0.1:4000/react/docs/addons.html
- http://127.0.0.1:4000/react/docs/why-react.html
- http://127.0.0.1:4000/react/docs/create-fragment.html
- A few tips:
- http://127.0.0.1:4000/react/tips/false-in-jsx.html
- http://127.0.0.1:4000/react/tips/style-props-value-px.html
- Non-English versions of the page:
- http://127.0.0.1:4000/react/docs/getting-started-it-IT.html
- http://127.0.0.1:4000/react/docs/getting-started-ja-JP.html
9 years ago
Varayut Lerdkanlayanawat
8695fd8c66
Reformat event names in Media Events section ( #7250 )
9 years ago
Miles Johnson
b3e32f5804
Added support for synthetic animation/transition events.
9 years ago
iamchenxin
44b52dfe1d
deleting some unecessary newline
9 years ago
hejld
662c897ed4
Add missing sections to events reference page in IT and CN
9 years ago
Rick Ford
0a10f2c956
Specify focus events work on all elements in the React DOM
Generally, focus/blur events only apply to focusable elements found in forms. In React, you can listen to focus/blur events on any element.
9 years ago
maxprafferty
08c87259da
added selection and composition events to reference page
added composition events to reference page
added selection events to reference page
9 years ago
Baraa Hamodi
bd6d713917
File Cleanup.
9 years ago
chico
f180f0ce37
make properties notation in docs consistent
9 years ago
chico
12278a6b50
fix isDefaultPrevented() and isPropagationStopped() methods of SyntheticEvent notation
9 years ago
chico
a765e28132
clarify that events work for elements not for components
9 years ago
JW
b85d9b68a0
Fix documentation of event propagation: 0.13 to 0.14
9 years ago
Edvin Erikson
b37b8538a1
Updated event pooling note in docs
10 years ago
Edvin Erikson
d731a058e4
Added documentation about pooled events
10 years ago
Vadim Chernysh
d9dc13b6c7
Added events documentation for <img> elements
10 years ago
blainekasten
159278e34a
Add MediaEvent Handlers for Video/Audio components
10 years ago
Ben Alpert
9dd9111dd7
Kill React.initializeTouchEvents for good
Now that #1169 is fixed, the only thing this is used for is to determine whether `onTouchTap` causes touch listeners to be added. The only internal uses of TapEventPlugin are where touch events are already initialized (so this doesn't make a difference) and we don't support `onTouchTap` as part of the public API so this should be safe.
10 years ago
BinaryMuse
973a7a8eb2
Add onContextMenu to events doc
10 years ago
Ben Alpert
9cf4a87fff
Add note about enter/leave bubbling
Fixes #2826 .
10 years ago
Mihai Parparita
751e21a58e
SyntheticEvent.timeStamp is a number, not a Date
Also makes the a few other attribute types use lowercase (primitive) naming, to be consistent.
10 years ago
Jason Webster
a4b866027d
Add additional supported methods to event documentation
`isPropagationStopped` and `isDefaultPrevented` methods do in fact exist on `SyntheticEvent`
10 years ago
Rafal Dittwald
373233c440
Update ref-05-events.md
use backticks and change example into its own sentence
10 years ago
Rafal Dittwald
d1fa368666
add note re: handling events in capture phase
10 years ago
Charles Marsh
8c2a734676
Fixed style and comment nits
11 years ago
Charles Marsh
9a59ebf752
Re-add with warning and monitorCodeUse
11 years ago
Charles Marsh
81edd2c527
Deprecate 'return false' in event handlers
11 years ago
Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
Andreas Svensson
69c6f91344
Normalize and polyfill KeyboardEvent further, also MouseEvent+TouchEvent
KeyboardEvent now normalizes "charCode", "keyCode", "which" across all browsers
KeyboardEvent has partial "key"-support for KeyDown/KeyUp and full "key"-support for KeyPress.
KeyboardEvent, MouseEvent and TouchEvent now has "getModifierState", polyfill when not implemented.
11 years ago
Ben Alpert
b282c3efd5
Add charCode/keyCode/which to key event docs
11 years ago
Ben Alpert
7b7fce2fb3
Add onMouseOver and onMouseOut events
Fixes #340 .
Test Plan:
Ported @danielstocks's jsfiddle (linked in the issue) to React and the hover effect worked properly.
11 years ago
Cheng Lou
0767e7b9dd
docs make all link start with /react/docs
11 years ago
Keito Uchiyama
c36b68e386
docs: Delete Mutation Events (onCharacterDOMModified)
11 years ago
Ben Alpert
f566b56ed1
Flesh out reference documentation, more API info
11 years ago