-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat(datepicker): add datepicker-mode #1516
feat(datepicker): add datepicker-mode #1516
Conversation
Will my PR be merged? Am I doing something wrong here? |
Hi @tomchentw. Sorry for the late response, I will review asap. |
@tomchentw Specifying initial mode in the datepicker is something we want to add. Actually the goal here is to provide a two-way binded variable, so I would prefer a name like About your implementation now. Firstly, an option like this should be also defined / overridden by a corresponding attribute, since I think someone will have different kind of scenarios in the same application. Also, I wouldn't expose to the user the 0 |
Travis CI just stopped in The suggestion changes are:
|
* datepickerConfig.startMode default to 'day' * datepickerConfig.startMode can be one of 'day', 'month', 'year'
* rename local variable 'mode' to 'modeIndex' in datepicker directive
@bekos I've finish implement it following your suggestion, it looks great now. |
Anyone wants to merge this? |
@tomchentw Please be patient :-) I would need to review this again. |
@bekos thanks a lot. You guys are really cool :) |
@tomchentw I am sorry but the timing was bad :-( I really appreciate your work and this would definitely have been merged but the datepicker is already under heavy refactoring (#1599) and it will make it harder for me to merge things. This two-way binded Closing and I hope you keep no hard feelings :-) |
@tomchentw I understand! In #1599 I have some todos, you can start working on them (probably |
[Update with: https://github.com/tomchentw/bootstrap/commit/00db638b35f43ef73d74f5fa1131c3a4737c06c9]
Thanks for creating SUCH a great project!!
add
datepickerConfig.datepickerMode
and attributedatepicker-mode
ondatepicker
directive:datepicker-mode
is two-way bound attributedatepicker-mode
to README