Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

docs(operators): Add documentation for fromEvent #286

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DiedrikDM
Copy link
Contributor

This adds documentation for the fromEvent operator. The documentation has been partially rewritten
to clarify certain parts a bit more. This change will close issue #78. Also added an extra innerHTML property binding for the parameter.description to be able to use a hyperlink.

This adds documentation for the fromEvent operator. The documentation has been partially rewritten
to clarify certain parts a bit more. This change will close issue ReactiveX#78
There were still a couple of examples necessary for the fromEvent operator. These have now been
added
@codecov-io
Copy link

codecov-io commented Feb 27, 2018

Codecov Report

Merging #286 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #286   +/-   ##
=======================================
  Coverage   90.49%   90.49%           
=======================================
  Files         115      115           
  Lines         442      442           
  Branches       10       10           
=======================================
  Hits          400      400           
  Misses         40       40           
  Partials        2        2
Impacted Files Coverage Δ
src/operator-docs/creation/fromEvent.ts 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 192a02b...7d738e9. Read the comment docs.

Copy link
Member

@niklas-wortmann niklas-wortmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added some comments. But I definetly need a closer look for a complete review.

name: 'fromEvent',
operatorType: 'creation',
signature: `static fromEvent(target,
eventName, options, selector): Observable`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice try :D just kidding. Could you add the types as long as #269 is in discussion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha! Apparently I wasn't paying attention, yes they should be there :)

</p>

<p>
Note that if the event target would normally (without RxJS) call the registered event handler with more than one argument,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add an exampe event here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added an example just below this paragraph. I think it makes more sense to put it there (so it doesn't stop the flow of the text with an example)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought, I would move the jquery example below the supported event types. Since its an additional note and breaks the flow of thought of fromEvent

…handler with more than one argu

Added a small jQuery example that creates and triggers an event handler with more than one argument.
</p>

<p>
Note that if the event target would normally (without RxJS) call the registered event handler with more than one argument,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a thought, I would move the jquery example below the supported event types. Since its an additional note and breaks the flow of thought of fromEvent

sumitarora and others added 2 commits March 7, 2018 23:34
The example of a non-one argument event handler, written with jQuery was breaking the flow ot the
text. Moved it below the event targets and added a small reference in the source text to continue
reading below.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants