bs-webapi-incubator
bs-webapi-incubator copied to clipboard
BuckleScript bindings to the DOM and other Web APIs
I have an issue to get a html input element. I can't find any method to convert `Dom.element` to `Dom.htmlInputElement` or `Dom.htmlElement` to `Dom.htmlInputElement`. I could make an identity binding...
This PR adds bindings for [the `DataTransfer` API](https://html.spec.whatwg.org/multipage/dnd.html#datatransfer), commonly used in drag-and-drop and clipboard events.
[The `DataTransfer` API](https://html.spec.whatwg.org/multipage/dnd.html#datatransfer) is used in drag-and-drop and clipboard events. We should support it. I've created a PR here: https://github.com/reasonml-community/bs-webapi-incubator/pull/208
I want to do simple thing. Just focus and select input field after click button. I have code like this: ``` [@react.component] let make = () => { let inputRef...
First commit handles `offsetX` and `offsetY`update. Second commit fixes bs warnings.
The intention is to enable using this browser feature: https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload There seems to already be a type for [Webapi.BeforeUnloadEvent](https://github.com/reasonml-community/bs-webapi-incubator/blob/master/src/Webapi/Webapi__Dom/Webapi__Dom__BeforeUnloadEvent.re), but not a attach an event listener for it. So this...
Hi, team. I'm working on the `CustomEvent` to use the typed `CustomEvent.detail` whichever I want to generate and use. Because it is not clearly typed yet. So that I'd like...
Got a couple of questions here; Should we append `Exn` for methods that potentially throw? Or maybe we catch it for convenience and return a result? Along the same lines,...
Perhaps a bit self-explanatory; I followed what was already there in `Webapi__ResizeObserver` and wrote a test fixture.
~~Needs to wait for https://github.com/rescript-lang/rescript-compiler/pull/4622 at the moment, so the 0.20 version is just placeholder~~ Not really sure how to proceed with the `namedItem` binding, when I tried to put...