showPicker method
void
showPicker()
The HTMLInputElement.showPicker()
method displays the browser picker
for an input
element.
This is the same picker that would normally be displayed when the element is selected, but can be triggered from a button press or other user interaction.
Commonly browsers implement it for inputs of these types: "date"
,
"month"
, "week"
, "time"
, "datetime-local"
, "color"
, or "file"
.
It can also be prepopulated with items from a datalist
element or
autocomplete
attribute.
More generally, this method should ideally display the picker for any input element on the platform that has a picker.
Implementation
external void showPicker();