Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Just the `{{date-picker`

License

Notifications You must be signed in to change notification settings

PrecisionNutrition/date-picker

Repository files navigation

date-picker

First there was shared-ember-components, Graham spoketh "This is crazy. Every time I touch a component's style, we have to update everything." And so {{date-picker was extracted, and so shall all of the other components.

Installation

You should reopen the DatePicker service and override isNativePickerDisplayed. This controls whether or not we display a native <input, or the fancy picker.

But Why This?

Whilst we wait for more desktop browsers to actually support date <inputs with a built in picker, we have to resort to building one for ourselves. This component falls back to native datepickers for mobile browsers.