Skip to content

SiDateInputDirective documentation

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

Base directive for date input fields.

Input Properties

Name Type Default Description
disabled
boolean false

Whether the date range input is disabled.

errormessageId
string `${this.id()}-errormessage`

This ID will be bound to the aria-describedby attribute of the date-input. Use this to reference the element containing the error message(s) for the date-input. It will be picked by the SiFormItemComponent if the date-input is used inside a form item.

Implements SiFormItemControl

id
string `si-date-input-${SiDateInputDirective.idCounter++}`

The actual id of the control that should be used in the for attribute of a label.

Implements SiFormItemControl

readonly
boolean false

Whether the date range input is readonly.

siDatepickerConfig
DatepickerInputConfig | undefined {}

Configuration object for the datepicker.

Output Properties

Name Type Description
dateChange protected
Date | undefined

Emits a new date value on input field value changes.

siDatepickerConfigChange
DatepickerInputConfig | undefined

Configuration object for the datepicker.

siDatepickerDisabledTime
boolean

Emits an event to notify about disabling the time from the datepicker. When time is disable, we construct a pure date object in UTC 00:00:00 time.

stateChange
void

Emits an event on state changes e.g. readonly, disable, ... .

Types Documentation

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

import type { SiFormItemControl } from '@siemens/element-ng/form';

Common interface for form item controls. Controls that should be connected to SiFormItemComponent must implement this interface and must be provided using the SI_FORM_ITEM_CONTROL token.

Properties

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';

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


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