SiDatepickerComponent documentation¶
import { SiDatepickerComponent } from '@siemens/element-ng/datepicker'; Input Properties¶
| Name | Type | Default | Description |
|---|---|---|---|
| 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¶
| Name | Type | Description |
|---|---|---|
| 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¶
| Name | Type | Description |
|---|---|---|
| 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¶
Defines the time is disabled when visible. Will also be updated on user change. Default is disabledTime ? : Text or translation key for the Options to turn on date range selection. enableDateRange ? : Text or translation key for the Consider time with minDate and maxDate Option to use two months view for date range picking. endTimeLabel ? : hideLabels ? : Configuration for hiding week numbers. Default is hideWeekNumbers ? : hoursAriaLabel ? : hoursLabel ? : hoursPlaceholder ? : Hides disable time switch in the timepicker part and includes mandatory the time in the picker. mandatoryTime ? : Maximal (latest) selectable date. meridiansLabel ? : millisecondsLabel ? : Minimal (earliest) selectable date. minutesAriaLabel ? : minutesLabel ? : Only month and year are selectable. secondsAriaLabel ? : secondsLabel ? : Defines the timepicker milliseconds visibility . Default is showMilliseconds ? : Defines the timepicker minutes visibility. Default is showMinutes ? : Defines the timepicker seconds visibility . Default is showSeconds ? : Defines the timepicker visibility. Default is startTimeLabel ? : Text or translation key for today button title. Default is Defines the starting day of the week. Default is weekStartDay ? : import type { DatepickerConfig } from '@siemens/element-ng/datepicker';
false.boolean ¶ disabled disable time. Default is Ignore time.boolean ¶ enabled disable time. Default is Consider time.string ¶ boolean ¶ false.boolean ¶ string ¶ string ¶ string ¶ boolean ¶ string ¶ string ¶ string ¶ string ¶ string ¶ string ¶ false.boolean ¶ true.boolean ¶ false.boolean ¶ false.string ¶ Today.monday.WeekStart ¶
import type { RangeType } from '@siemens/element-ng/datepicker';
Represents a translatable string. This can either be a translation key, e.g. import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';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.
import type { WeekStart } from '@siemens/element-ng/datepicker';
Except where otherwise noted, content on this site is licensed under MIT License.