Search results

TimePickerComponent

Represents the Essential JS 2 Angular TimePicker Component.

<ejs-timepicker [value]='dateTime'></ejs-timepicker>

Properties

allowEdit

boolean

Specifies whether the input textbox is editable or not. Here the user can select the value from the popup and cannot edit in the input textbox.

Defaults to true

cssClass

string

Specifies the root CSS class of the TimePicker that allows to customize the appearance by overriding the styles.

Defaults to null

enablePersistence

boolean

Enable or disable the persisting component’s state between the page reloads. If enabled, following list of states will be persisted.

  1. Value

Defaults to false

enableRtl

boolean

Specifies the TimePicker in RTL mode that displays the content in the right-to-left direction.

Defaults to false

enabled

boolean

Specifies whether the component to be disabled or not.

Defaults to true

floatLabelType

FloatLabelType | string

Specifies the placeholder text to be floated. Possible values are: Never: The label will never float in the input when the placeholder is available. Always: The floating label will always float above the input. Auto: The floating label will float above the input after focusing or entering a value in the input.

Defaults to Syncfusion.EJ2.Inputs.FloatLabelType.Never

format

string

Specifies the format of value that is to be displayed in component. By default, the format is based on the culture.

For more details refer to Format documentation.

Defaults to null

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

Defaults to undefined

max

Date

Gets or sets the maximum time value that can be allowed to select in TimePicker.

For more details refer to Time Range documentation.

Defaults to 00:00

min

Date

Gets or sets the minimum time value that can be allowed to select in TimePicker.

For more details refer to Time Range documentation.

Defaults to 00:00

placeholder

string

Specifies the placeholder text that is displayed in textbox.

Defaults to null

readonly

boolean

Specifies the component in readonly state.

Defaults to false

scrollTo

Date

Specifies the scroll bar position if there is no value is selected in the popup list or the given value is not present in the popup list.

For more details refer to Time Duration sample.

Defaults to null

showClearButton

boolean

Specifies whether to show or hide the clear icon.

Defaults to true

step

number

Specifies the time interval between the two adjacent time values in the popup list.

For more details refer to Formatdocumentation.

Defaults to 30

strictMode

boolean

Specifies the component to act as strict so that, it allows to enter only a valid time value within a specified range or else resets to previous value. By default, strictMode is in false.

For more details refer to Strict Mode documentation.

Defaults to false

value

Date

Gets or sets the value of the component. The value is parsed based on the culture specific time format.

Defaults to null

width

string | number

Gets or sets the width of the TimePicker component. The width of the popup is based on the width of the component.

Defaults to null

zIndex

number

specifies the z-index value of the timePicker popup element.

Defaults to 1000

Methods

focusIn

Focused the TimePicker textbox element.

Returns void

focusOut

Focuses out the TimePicker textbox element.

Returns void

getPersistData

Gets the properties to be maintained upon browser refresh.

Returns string

hide

Hides the TimePicker popup.

Returns void

show

Opens the popup to show the list items.

Returns void

Events

blur

EmitType<BlurEventArgs>

Triggers when the control loses the focus.

change

EmitType<ChangeEventArgs>

Triggers when the value is changed.

close

EmitType<PopupEventArgs>

Triggers when the popup is closed.

created

EmitType<Object>

Triggers when the component is created.

destroyed

EmitType<Object>

Triggers when the component is destroyed.

focus

EmitType<FocusEventArgs>

Triggers when the control gets focused.

itemRender

EmitType<ItemEventArgs>

Triggers while rendering the each popup list item.

open

EmitType<PopupEventArgs>

Triggers when the popup is opened.