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

Function _getDropdownStrategy

src/material/datepicker/datepicker-base.ts:811–822  ·  view source on GitHub ↗

Gets a position strategy that will open the calendar as a dropdown.

()

Source from the content-addressed store, hash-verified

809
810 /** Gets a position strategy that will open the calendar as a dropdown. */
811 private _getDropdownStrategy() {
812 const strategy = createFlexibleConnectedPositionStrategy(
813 this._injector,
814 this.datepickerInput.getConnectedOverlayOrigin(),
815 )
816 .withTransformOriginOn('.mat-datepicker-content')
817 .withFlexibleDimensions(false)
818 .withViewportMargin(8)
819 .withLockedPosition();
820
821 return this._setConnectedPositions(strategy);
822 }
823
824 /** Sets the positions of the datepicker in dropdown mode based on the current configuration. */
825 private _setConnectedPositions(strategy: FlexibleConnectedPositionStrategy) {

Callers

nothing calls this directly

Tested by

no test coverage detected