billdami / ember-date-picker

A lightweight, mobile-optimized, date picker component for ember.js applications.
MIT License
28 stars 8 forks source link

if using MM/YYYY don't show days #1

Open smcclstocks opened 10 years ago

smcclstocks commented 10 years ago

maybe isn't a big deal but it would avoid some confusion when days aren't relevant. Seriously, this could be dumb but just tossing it out there to get your reaction.

billdami commented 10 years ago

Yeah, that makes sense. I could also see a use case for hiding the year selector; for instance if you have a birthday field that doesn't require the birth year.

Maybe instead of parsing the dateFormat to internally decide what columns/selectors to display, I'll just make it a little more straightforward and declarative, and expose 3 additional optional parameters: hideMonth, hideDay, and hideYear.

smcclstocks commented 10 years ago

sounds much better.