MaterialTimePickerComponent class

A material-design-styled time input component.

Inheritance
Implemented types
Annotations
  • @Component(selector: 'material-time-picker', changeDetection: ChangeDetectionStrategy.onPush, directives: [MaterialDropdownSelectComponent, materialInputDirectives, NgStyle], directiveTypes: [Typed<MaterialDropdownSelectComponent<DateTime>>()], providers: [ExistingProvider(HasDisabled, MaterialTimePickerComponent)], templateUrl: 'material_time_picker.html', styleUrls: ['material_time_picker.scss.css'])

Constructors

MaterialTimePickerComponent(@Inject(datepickerClock) Clock _clock)

Properties

disabled bool
Whether changing the selected time should be disabled.
getter/setter pairoverride
displayErrorPanel bool
getter/setter pair
no setter
error String
An error displayed below the closed date picker.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
increment int
Increment of dropdown options in minutes.
no getter
inputError String
getter/setter pair
isRtl bool?
Whether the direction of the component is RTL.
getter/setter pairinherited
maxTime DateTime
Maximum date time that can be chosen by the user.
getter/setter pair
minTime DateTime
Minimum date time that can be chosen by the user.
getter/setter pair
outputFormat ↔ DateFormat
The format used to format time.
getter/setter pair
popupVisible bool
Make the dropdown visibility accessible so it can be opened from outside the component.
getter/setter pair
popupVisibleChange Stream<bool>
Publishes events when the popupVisible changes.
no setter
required bool
Whether the time entry is required.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedTime SelectionModel<DateTime>
getter/setter pair
time DateTime?
The selected time.
getter/setter pair
timeChange Stream<DateTime?>
Publishes events when the selected time changes.
no setter
timeInputText String
getter/setter pair
timeOptions TimeSelectionOptions
getter/setter pair
utc bool
Whether the widget returns time in the UTC time zone.
getter/setter pair

Methods

handleBackspaceKey(KeyboardEvent event) → void
inherited
handleCharCodeKey(KeyboardEvent event) → void
inherited
handleDeleteKey(KeyboardEvent event) → void
inherited
handleDownKey(KeyboardEvent event) → void
inherited
handleEndKey(KeyboardEvent event) → void
inherited
handleEnterKey(KeyboardEvent event) → void
Stops material-dropdown-select from selecting dropdown item when user press enter key in the input field.
override
handleEscapeKey(KeyboardEvent event) → void
inherited
handleHomeKey(KeyboardEvent event) → void
inherited
handleLeftKey(KeyboardEvent event) → void
inherited
handlePageDown(KeyboardEvent event) → void
inherited
handlePageUp(KeyboardEvent event) → void
inherited
handleRightKey(KeyboardEvent event) → void
inherited
handleSpaceKey(KeyboardEvent event) → void
Stops material-dropdown-select from closing popup when user type space in the input field.
override
handleUpKey(KeyboardEvent event) → void
inherited
ngOnDestroy() → void
Executed before the directive is removed from the DOM and destroyed.
ngOnInit() → void
Executed after the first change detection run for a directive.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBlur() → void
Triggered when blur time input box.
onInputBoxKeyDown(KeyboardEvent event) → void
Stops propagating arrow key action from time input box to material-dropdown-select.
onKeyDown(KeyboardEvent event) → void
Keydown callback used to handle arrow keys.
inherited
onKeyPress(KeyboardEvent event) → void
Keypress callback used to handle enter and space keys.
inherited
onKeyUp(KeyboardEvent event) → void
Keyup callback used to handle escape keys.
inherited
onTextChange(String text) → void
Triggered when time input box text changes.
renderTime(DateTime time) String
setInputErrorText(String? errorText) → void
setTimeToNowIfUnset() → void
Sets time to now if it's null.
timeIsTooEarlyMsg(String minimumTime) String
timeIsTooLateMsg(String maximumTime) String
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

final
inputPlaceholderMsg String
final

Constants

minutesInDay → const int