I am trying to create a dojo DateTextBox in the custom formatted Info Window that pops up when clicking features on my map. Within my info template I have code that looks like this (only the relevent stuff is here):
infoTemplate.setContent(
"<label for='myDateInput'>Date: </label>" +
"<input id='myDateInput' type='text' data-dojo-type='dijit/form/DateTextBox' value='${DATE}' />"
);
Also have dijit/form/DateTextBox in my require statements.
Unfortunately the result is just a regular text input field with my date attribute in it, and not that drop down calendar.
The html works when I just put it directly on my html page to test, so I'm not sure why it doesn't like the dojo.
Thanks!
Hi Joseph,
Are you looking for the ability to update the date within the InfoTemplate? The InfoTemplate is read-only, so you won't have this ability. Take a look at the AttributeInspector class if you wish to change the date.
Hi Joseph,?
I'm having the same problem when I try to create a dojo DateTextBox in a custom widget, Did you solved it ? How ?
Thanks,
Dairis