https://github.com/dergoogler/findbyview
https://github.com/dergoogler/findbyview
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dergoogler/findbyview
- Owner: DerGoogler
- License: mit
- Created: 2022-07-01T16:09:10.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-01T18:39:51.000Z (almost 4 years ago)
- Last Synced: 2025-02-04T08:03:28.671Z (over 1 year ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# findByView
````javascript
/**
* @param id Given element or ref
* @param callback HTMLElement or React.RefObject
*
* @description
* Usage
* ```ts
* // Id's
* new findByView("element", (element: HTMLElement) => { element.style.display = "none" })
*
* // Refs
* new findByView(this.myRef, (ref: HTMLElement) => { ref.style.display = "none" })
*
* // Get direclty
* new findByView("element").get?.addEventListener("click", () => thisArgument.click());
* ```
*/
````