ng2-semantic-ui icon indicating copy to clipboard operation
ng2-semantic-ui copied to clipboard

feat(datepicker): Add initial view setting

Open trevordaniels opened this issue 7 years ago • 4 comments

Partially addresses #165 Not sure if you want to expose CalendarViewType, or create a new export type similar to DatepickerMode

trevordaniels avatar Aug 08 '17 07:08 trevordaniels

Did you check what happens if initialView is not in the keys of config.mappings.changed? What I mean is the initialVIew must be part of the views asociated with the datepicker mode. For instance initialView=minute is not compatible with datepicker mode=year.

Does it behave well under those conditions? Otherwise a check must be added.

harogaston avatar Aug 08 '17 14:08 harogaston

Added a check to ensure the view exists in mappings.changed

trevordaniels avatar Aug 09 '17 01:08 trevordaniels

Nice, I mentioned it because I had already been thinking about implementing this. Keep it up!

harogaston avatar Aug 09 '17 01:08 harogaston

I appreciate your feedback, hope you hadn't started on it!

trevordaniels avatar Aug 09 '17 01:08 trevordaniels