Feature request: context prop to Visibility component
See original GitHub issueApologies if this is not the right forum to make this request, but it would be great to have a context
prop for the Visibility component, much like you can change the context
in Semantic UI: https://semantic-ui.com/behaviors/visibility.html#/settings.
For example. I want to change the scroll
event listener to listen on the scroll of a surrounding <List> component (i.e. a component which has a height less than the window height, but has an overflow so is scrollable).
Currently, when this component is scrolled, none of the Visibility component’s props fire because it does not think that the window is being scrolled.
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Context - React
Context. Context provides a way to pass data through the component tree without having to pass props down manually at every level.
Read more >React Context API: A deep dive with examples - LogRocket Blog
Review what the React Context API is, when we should use it to avoid prop drilling, and how we can use Context most...
Read more >Building React Components Using Children Props ... - Soshace
React provides a number of powerful patterns to compose components; for example, Containment, Specialization, and Render Props.
Read more >How to Use Context API with Hooks While Avoiding Bottlenecks
Learn how to efficiently create and consume Context API with the use of hooks without performance issues.
Read more >Feature Visibility | Enterprise Architect User Guide
Select the checkbox against each scope that should be visible, and clear the checkbox against each scope that should not be visible. Define...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@frogbandit @mariolamacchia Note we are adding a
Ref
component that will enable SUIR to support React elements everywhere we support DOM nodes. This includes stateless functional components. I responded here https://github.com/Semantic-Org/Semantic-UI-React/pull/1978#issuecomment-326746794 as well. You can see #1879 for the work being done.If you have an issue, create a new issue.