dgrubelic / material-design-lite

Material Design Lite Components in HTML/CSS/JS
http://getmdl.io
Apache License 2.0
3 stars 6 forks source link

Implement date ranges #8

Closed dgrubelic closed 8 years ago

dgrubelic commented 8 years ago

Include minimum and maximum dates and control picker available dates.

Should check with Google guys if this is really necessary for this component or should we let users to implement that kind of checks.

sgomes commented 8 years ago

You could add the ability to the component to validate user-defined minimum and maximum dates, but given that there isn't even any example in the spec of how the error message would be displayed (unlike, e.g. text fields), this sort of validation is probably better left to users.

Thanks again for looking into this component!

dgrubelic commented 8 years ago

I was thinking to implement possibility do disable date selection outside of defined range. That way we don't need validation since date selection is impossible. This feature is actually implemented in Material UI date-picker (http://www.material-ui.com/#/components/date-picker).

No problem. I need the component and I, since nobody took the job before, decided to write it myself. Hope it will be good enough for public release.

sgomes commented 8 years ago

@dgrubelic Happy for you to proceed either way on this, just giving you the perspective on what the spec requires.

Don't worry about public release; we'll be sure to review it thoroughly and help you with making any changes needed. And we'll take good care of it afterwards :) Thanks again for working on this!

jinzhu commented 8 years ago

Hi @dgrubelic

What's the state of this issue, any update?

dgrubelic commented 8 years ago

Hi @jinzhu thanks for interest... I had to take some time off for other personal stuff do resolve before working on this one. I believe that i will have this finished by the end of this week.

jinzhu commented 8 years ago

@dgrubelic cool, thank you for the update.