# SiTimepickerComponent documentation

**Kind:** component

**Selector:** `si-timepicker`

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

```
component SiTimepickerComponent implements ControlValueAccessor, Validator, SiFormItemControl
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [disabled](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L119-L119>) | `boolean` | `false` | All input fields will be disabled if set to true. |
| [errormessageId](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L282-L282>) | `string` | `` `${this.id()}-errormessage` `` | This ID will be bound to the `aria-describedby` attribute of the timepicker. Use this to reference the element containing the error message(s) for the timepicker. It will be picked by the [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>) if the timepicker is used inside a form item.<br><br>Implements [SiFormItemControl](<index.html#t:SiFormItemControl>) |
| [hideLabels](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L149-L149>) | `boolean` | `false` | Hide the labels of the input fields. |
| [hoursAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L157-L157>) | `TranslatableString` | `` $localize`:@@SI_DATEPICKER.HOURS:Hours` `` |  |
| [hoursLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L126-L126>) | `TranslatableString` | `'hh'` | Visible label for the hours input. |
| [hoursPlaceholder](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L187-L187>) | `string` | `'hh'` | Placeholder for the hours input. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L107-L107>) | `string` | `` `__si-timepicker-${SiTimepickerComponent.idCounter++}` `` | The actual id of the control that should be used in the `for` attribute of a label.<br><br>Implements [SiFormItemControl](<index.html#t:SiFormItemControl>) |
| [max](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L254-L254>) | `Date \| undefined` |  | A maximum time limit. The date part of the date object will be ignored. |
| [meridians](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L208-L208>) | `string[] \| undefined` |  | Custom labels for the AM and PM options. |
| [meridiansAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L221-L221>) | `TranslatableString` | `` $localize`:@@SI_DATEPICKER.PERIOD:Period` `` |  |
| [meridiansLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L214-L214>) | `TranslatableString` | `'am/pm'` | Visible label for the AM/PM selector. |
| [millisecondsAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L178-L180>) | `TranslatableString` | `` $localize`:@@SI_DATEPICKER.MILLISECONDS:Milliseconds` `` |  |
| [millisecondsLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L144-L144>) | `TranslatableString` | `'ms'` | Visible label for the milliseconds input. |
| [millisecondsPlaceholder](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L205-L205>) | `string` | `'ms'` | Placeholder for the milliseconds input. |
| [min](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L249-L249>) | `Date \| undefined` |  | A minimum time limit. The date part of the date object will be ignored. |
| [minutesAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L164-L164>) | `TranslatableString` | `` $localize`:@@SI_DATEPICKER.MINUTES:Minutes` `` |  |
| [minutesLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L132-L132>) | `TranslatableString` | `'mm'` | Visible label for the minutes input. |
| [minutesPlaceholder](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L193-L193>) | `string` | `'mm'` | Placeholder for the minutes input. |
| [readonly](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L261-L261>) | `boolean` | `false` | Whether the time inputs are read-only. |
| [secondsAriaLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L171-L171>) | `TranslatableString` | `` $localize`:@@SI_DATEPICKER.SECONDS:Seconds` `` |  |
| [secondsLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L138-L138>) | `TranslatableString` | `'ss'` | Visible label for the seconds input. |
| [secondsPlaceholder](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L199-L199>) | `string` | `'ss'` | Placeholder for the seconds input. |
| [showMeridian](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L244-L244>) | `boolean \| undefined` |  | Show time in 12-hour period including the select to toggle between AM/PM. |
| [showMilliseconds](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L240-L240>) | `boolean` | `false` | Whether the milliseconds input is displayed. |
| [showMinutes](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L228-L228>) | `boolean` | `true` | Whether the minutes input is displayed. |
| [showSeconds](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L234-L234>) | `boolean` | `false` | Whether the seconds input is displayed. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [inputCompleted](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L268-L268>) | `void` | Emits when the user presses Enter in the final time input. |
| [isValid](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L264-L264>) | `boolean` | Emits whether the entered time components form a valid time. |
| [meridianChange](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L266-L266>) | `string` | Emits the selected meridian when it changes. |

#### Attributes and Methods

##### labelledby

[Source for labelledby](<https://github.com/siemens/element/blob/main/projects/element-ng/datepicker/si-timepicker.component.ts#L109-L112>)

**Modifiers:** readonly

**Type:** `string`

**Default:** `...`

ID that should be assigned to the label element inside the [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>).

If the target control is not of type input, select or button, it cannot be referenced by a label. Instead, aria-labelledby must be used to create a reference to a label. In such a case, an implementation of [SiFormItemControl](<index.html#t:SiFormItemControl>) must provide the id of the label in [labelledby](<index.html#SiTimepickerComponent.labelledby>). [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>) will apply the id to the label so that it can be used inside the control to reference it in the aria-labelledby attribute.

Implements [SiFormItemControl](<index.html#t:SiFormItemControl>)

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
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.

```
type TranslatableString = string & Translatable
```

### [SiFormItemControl](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-item.control.ts#L14-L38>)

**Kind:** interface

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

Common interface for form item controls. Controls that should be connected to [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>) must implement this interface and must be provided using the [SI\_FORM\_ITEM\_CONTROL](<../../types/SI_FORM_ITEM_CONTROL/index.html#t:SI_FORM_ITEM_CONTROL>) token.

```
interface SiFormItemControl
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [errormessageId](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-item.control.ts#L34-L34>) (readonly) | `string \| Signal<string>` | Generated ID that the [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>) will assign to the element containing the error messages. Implementations of [SiFormItemControl](<index.html#t:SiFormItemControl>) must generate this ID and assign it to the `aria-describedby` attribute of their focusable elements. |
| [id](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-item.control.ts#L16-L16>) (optional, readonly) | `string \| Signal<string \| undefined>` | The actual id of the control that should be used in the `for` attribute of a label. |
| [isFormCheck](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-item.control.ts#L37-L37>) (optional, readonly) | `boolean` | If the control is meant to be used a checkbox. This affects the label positioning. |
| [labelledby](<https://github.com/siemens/element/blob/main/projects/element-ng/form/si-form-item.control.ts#L27-L27>) (optional, readonly) | `string \| Signal<string \| undefined> \| null` | ID that should be assigned to the label element inside the [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>).<br><br>If the target control is not of type input, select or button, it cannot be referenced by a label. Instead, aria-labelledby must be used to create a reference to a label. In such a case, an implementation of [SiFormItemControl](<index.html#t:SiFormItemControl>) must provide the id of the label in [labelledby](<index.html#t:SiFormItemControl.labelledby>). [SiFormItemComponent](<../SiFormItemComponent/index.html#SiFormItemComponent>) will apply the id to the label so that it can be used inside the control to reference it in the aria-labelledby attribute. |
