MCPcopy Index your code
hub / github.com/angular/components / close

Method close

src/material/timepicker/timepicker.ts:287–296  ·  view source on GitHub ↗

Closes the timepicker.

()

Source from the content-addressed store, hash-verified

285
286 /** Closes the timepicker. */
287 close(): void {
288 if (this._isOpen()) {
289 this._isOpen.set(false);
290 this.closed.emit();
291
292 if (this._animationsDisabled) {
293 this._overlayRef?.detach();
294 }
295 }
296 }
297
298 /** Registers an input with the timepicker. */
299 registerInput(input: MatTimepickerConnectedInput<D>): void {

Callers 4

_selectValueMethod · 0.95
_getOverlayRefMethod · 0.95
_handleKeydownMethod · 0.95
timepicker.spec.tsFile · 0.45

Calls 2

setMethod · 0.80
detachMethod · 0.65

Tested by

no test coverage detected