| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Our datepicker is flexible and fully customizable.
You can navigate through days, months and years.
The datepicker has 3 modes:
ng-model $ - The date object. Must be a Javascript Date object. You may use the uibDateParser service to assist in string-to-object conversion.
ng-model-options $ C (Default: {}) - Supported angular ngModelOptions:
template-url (Default: uib/template/datepicker/datepicker.html) - Add the ability to override the template used on the component.
Apart from the previous settings, to configure the uib-datepicker you need to create an object in Javascript with all the options and use it on the datepicker-options attribute:
datepicker-options $ - An object to configure the datepicker in one place.
customClass ({date: date, mode: mode}) - An optional expression to add classes based on passing an object with date and current mode properties.
dateDisabled ({date: date, mode: mode}) - An optional expression to disable visible options based on passing an object with date and current mode properties.
datepickerMode C (Default: day) - Current mode of the datepicker (day|month|year). Can be used to initialize the datepicker in a specific mode.
formatDay C (Default: dd) - Format of day in month.
formatMonth C (Default: MMMM) - Format of month in year.
formatYear C (Default: yyyy) - Format of year in year range.
formatDayHeader C (Default: EEE) - Format of day in week header.
formatDayTitle C (Default: MMMM yyyy) - Format of title when selecting day.
formatMonthTitle C (Default: yyyy) - Format of title when selecting month.
initDate (Default: null) - The initial date view when no model value is specified.
maxDate C (Default: null) - Defines the maximum available date. Requires a Javascript Date object.
maxMode C (Default: year) - Sets an upper limit for mode.
minDate C (Default: null) - Defines the minimum available date. Requires a Javascript Date object.
minMode C (Default: day) - Sets a lower limit for mode.
monthColumns C (Default: 3) - Number of columns displayed in month selection.
ngModelOptions C (Default: null) - Sets ngModelOptions for datepicker. This can be overridden through attribute usage
shortcutPropagation C (Default: false) - An option to disable the propagation of the keydown event.
showWeeks C (Default: true) - Whether to display week numbers.
startingDay C (Default: $locale.DATETIME_FORMATS.FIRSTDAYOFWEEK) - Starting day of the week from 0-6 (0=Sunday, ..., 6=Saturday).
yearRows C (Default: 4) - Number of rows displayed in year selection.
yearColumns C (Default: 5) - Number of columns displayed in year selection.
Depending on datepicker's current mode, the date may refer either to day, month or year. Accordingly, the term view refers either to a month, year or year range.
Notes
If the date a user enters falls outside of the min-/max-date range, a dateDisabled validation error will show on the form.
| Back | FazBrowse Home | New Git URL |