wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Add `showPicker()` for HtmlInputElement

Open Billy-Sheppard opened this issue 2 years ago • 0 comments

Motivation

It would be useful to be able to call the showPicker() JS method from rust.

Proposed Solution

Add method for JS method showPicker() on HtmlInputElements. Should return an error if the input is unavailable or if its not of type: date, datetime-local, month, time, week, color, or file.

Alternatives

Going via an exported JS function is clunky and should be unnecessary.

Additional Context

MDN Reference here.

Billy-Sheppard avatar Aug 18 '22 05:08 Billy-Sheppard