dash-core-components
dash-core-components copied to clipboard
Ability to pass the "name" parameter to DatePicker Input
I would like to use the DatePickerSingle and DatePickerRange in a Form to make a post request in flask. Currently, I cannot access the "name" parameter of the html "Input" associated with the datepicker. If I use multiple datepickers in the form I cannot tell which is which. I cannot use dash callbacks with what I am doing as this particular case would require dynamic callback injection after the server starts.
When setting the id, this doesn't seem to be passed to the html Input element either.
When setting the id, this doesn't seem to be passed to the html Input element either.
I stumbled over this while trying to use two DatePickerSingle
components on a single page; both input elements possess the ID date
, leading to a console error.
Fortunately, the underlying library supports setting an explicit ID. Maybe the ID (that we specify when using the component) could be forwarded to allow the use of multiple date picker components.