MaterialDatePicker setDateMax()
See original GitHub issueHey,
seems like there is another issue like #707 and #705 but this time with setDateMax and setDateMin.
I made sure that I’m using the current version by cleaning out the repo.
Calling the methods results in…
Exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'set' of undefined
ConsoleLogger.java:32 TypeError: Cannot read property 'set' of undefined
at vsh_g$.Bth_g$ [as setDateMax_0_g$] (MaterialDatePicker.java:253)
...
thx and kr
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
gwt.material.design.client.ui.MaterialDatePicker.setDateMin java ...
Enables or disables auto closing when selecting a date. setDate. Sets the current date of the picker. setDateMax. Set the maximum date limit....
Read more >MaterialDatePicker (Gwt Material 2.0.1 API)
Material Date Picker will provide a visual calendar to your apps. ... MaterialDatePicker() ... public void setDateMax(Date dateMax).
Read more >MaterialDatePicker Exception on modal Dialog dateField.clear()
Hi, if you clear() a DatePicker-Field on a modal Dialog-Window (MaterialWindow) like this: View: @Override public void openMDialog() ...
Read more >MaterialDatePicker - Android Developers
S, getSelection(). Returns an S instance representing the selection or null if the user has not confirmed a selection.
Read more >gwt.material.design.client.ui.MaterialDatePicker.java Source code
Date; //@formatter:off /** * Material Date Picker will provide a visual ... public Date getDateMax() { return dateMax; } public void setDateMax(Date ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Why do you need to wrap an scheduler to set the datepicker dateMin / dateMax values , this seems causing the issue. Also we learned also from our projects, that scheduler / timer will need to be setup correctly (Almost only on events - to listen whether they finished firing. But for this case setting a property to a scheduler is not a good idea.
Yes, if I do the setup outside of the scheduler everything seems to work fine.