MCPcopy Create free account
hub / github.com/angular/components / _formatValue

Function _formatValue

src/material/datepicker/datepicker-input-base.ts:374–377  ·  view source on GitHub ↗

Formats a value and sets it on the input element.

(value: D | null)

Source from the content-addressed store, hash-verified

372
373 /** Formats a value and sets it on the input element. */
374 protected _formatValue(value: D | null) {
375 this._elementRef.nativeElement.value =
376 value != null ? this._dateAdapter.format(value, this._dateFormats.display.dateInput) : '';
377 }
378
379 /** Assigns a value to the model. */
380 private _assignValue(value: D | null) {

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected