Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

Optional altInputFormats

altInputFormats: string[]

A list of alternate formats acceptable for manual entry.

default

[]

Optional appendToBody

appendToBody: boolean

Append the datepicker popup element to body, rather than inserting after datepicker-popup.

default

false

Optional clearText

clearText: string

The text to display for the clear button.

default

'Clear'

Optional closeOnDateSelection

closeOnDateSelection: boolean

Whether to close calendar when a date is chosen.

default

true

Optional closeText

closeText: string

The text to display for the close button.

default

'Done'

Optional currentText

currentText: string

The text to display for the current day button.

default

'Today'

Optional customClass

customClass: DatepickerCallback<string>

Defines an optional expression to add classes based on passing an object with date and current mode properties.

default

null

Optional dateDisabled

dateDisabled: DatepickerCallback<boolean>

Defines an optional expression to disable visible options based on passing an object with date and current mode properties.

default

null

Optional datepickerMode

datepickerMode: DatepickerMode

Current mode of the datepicker (day|month|year). Can be used to initialize datepicker to specific mode.

default

'day'

Optional datepickerPopup

datepickerPopup: string

The format for displayed dates.

default

'yyyy-MM-dd'

Optional datepickerPopupTemplateUrl

datepickerPopupTemplateUrl: string

Allows overriding of default template of the popup.

default

'template/datepicker/popup.html'

Optional datepickerTemplateUrl

datepickerTemplateUrl: string

Allows overriding of default template of the datepicker used in popup.

default

'template/datepicker/popup.html'

Optional formatDay

formatDay: string

Format of day in month.

default

'dd'

Optional formatDayHeader

formatDayHeader: string

Format of day in week header.

default

'EEE'

Optional formatDayTitle

formatDayTitle: string

Format of title when selecting day.

default

'MMM yyyy'

Optional formatMonth

formatMonth: string

Format of month in year.

default

'MMM'

Optional formatMonthTitle

formatMonthTitle: string

Format of title when selecting month.

default

'yyyy'

Optional formatYear

formatYear: string

Format of year in year range.

default

'yyyy'

Optional html5Types

html5Types: { date?: string; datetime-local?: string; month?: string }

Allows overriding of the default format for html5 date inputs.

Type declaration

  • Optional date?: string
  • Optional datetime-local?: string
  • Optional month?: string

Optional initDate

initDate: any

Defines the initial date, when no model value is specified.

default

null

Optional maxDate

maxDate: any

Defines the maximum available date.

default

null

Optional maxMode

maxMode: string

Set an upper limit for mode.

default

'year'

Optional minDate

minDate: any

Defines the minimum available date.

default

null

Optional minMode

minMode: string

Set a lower limit for mode.

default

'day'

Optional monthColumns

monthColumns: number

The number of columns displayed in month selection.

default

3

Optional ngModelOptions

ngModelOptions: IDropdownConfigNgOptions

All supported angular ngModelOptions plus some

default

{}

Optional onOpenFocus

onOpenFocus: boolean

Whether to focus the datepicker popup upon opening.

default

true

Optional placement

placement: string

Passing in 'auto' separated by a space before the placement will enable auto positioning, e.g: "auto bottom-left". The popup will attempt to position where it fits in the closest scrollable ancestor.

default

'auto bottom-left'

Optional shortcutPropagation

shortcutPropagation: boolean

An option to disable or enable shortcut's event propagation

default

false

Optional showButtonBar

showButtonBar: boolean

Whether to display a button bar underneath the datepicker.

default

true

Optional showWeeks

showWeeks: boolean

Whether to display week numbers.

default

true

Optional startingDay

startingDay: number

Starting day of the week from 0-6 where 0=Sunday and 6=Saturday.

default

0

Optional yearColumns

yearColumns: number

The number of columns displayed in year selection.

default

5

Optional yearRange

yearRange: number

Number of years displayed in year selection.

default

20

Optional yearRows

yearRows: number

The number of rows displayed in year selection

default

4

Generated using TypeDoc