Skip to content

SiDatepickerComponent documentation

import { SiDatepickerComponent } from '@siemens/element-ng/datepicker';

Input Properties

NameTypeDefaultDescription
calendarWeekLabel
TranslatableString $localize`:@@SI_DATEPICKER.CALENDAR_WEEK_LABEL:Calendar week`

Aria label for week number column

config
DatepickerConfig {}

Object to configure the datepicker.

date
Date | undefined

The selected date of the datepicker. Use for initialization and for bidirectional binding.

dateRange
DateRange | undefined

The selected date range of the datepicker. Use for initialization and for bidirectional binding.

disabledTime
boolean false

Disabled the optional visible time picker.

focusedDate
Date | undefined

The date which is currently focused Compare to the selected date or range the calendar requires to have one element to focus.

hideTimeToggle
boolean false

Option to hide the time switch.

initialFocus
boolean false

Set initial focus to calendar body.

nextLabel
TranslatableString $localize`:@@SI_DATEPICKER.NEXT:Next`

Aria label for the next button. Needed for a11y.

previousLabel
TranslatableString $localize`:@@SI_DATEPICKER.PREVIOUS:Previous`

Aria label for the previous button. Needed for a11y.

rangeType
RangeType 'START'

Use this to force date range operation to select either start date or end date.

time12h
boolean undefined

Enable/disable 12H mode in timepicker. Defaults to locale

timepickerLabel
string | undefined

Optional timepicker label.

Output Properties

NameTypeDescription
configChange
DatepickerConfig

Object to configure the datepicker.

dateChange
Date | undefined

The selected date of the datepicker. Use for initialization and for bidirectional binding.

dateRangeChange
DateRange | undefined

The selected date range of the datepicker. Use for initialization and for bidirectional binding.

disabledTimeChange
boolean

Disabled the optional visible time picker.

focusedDateChange
Date | undefined

The date which is currently focused Compare to the selected date or range the calendar requires to have one element to focus.

rangeTypeChange
RangeType

Use this to force date range operation to select either start date or end date.

Attributes and Methods

NameTypeDescription
focusActiveCell()
() => void

Focus the active cell in view. The function is required to transfer the focus from input to the active date cell.

Types Documentation

import type { DatepickerConfig } from '@siemens/element-ng/datepicker';
Properties
import type { DateRange } from '@siemens/element-ng/datepicker';

RangeType

'START' | 'END' | undefined
type alias
import type { RangeType } from '@siemens/element-ng/datepicker';
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';

Represents a translatable string. This can either be a translation key, e.g. ACTIONS.EDIT that will be automatically translated when displayed on the UI or a pre-translated string, e.g. Edit. Equivalent to a normal string in usage and functionality.

WeekStart

'monday' | 'saturday' | 'sunday' | undefined
type alias
import type { WeekStart } from '@siemens/element-ng/datepicker';

Except where otherwise noted, content on this site is licensed under MIT License.