An open API service indexing awesome lists of open source software.

https://github.com/dergoogler/findbyview


https://github.com/dergoogler/findbyview

Last synced: 9 months ago
JSON representation

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());
* ```
*/
````