projects/ui-kit-lib/src/lib/v2/modals/dialog-container.ts
CdkDialogContainer
| changeDetection | ChangeDetectionStrategy.Eager |
| encapsulation | ViewEncapsulation.None |
| host | { |
| selector | md-dialog-container |
| imports |
CdkPortalOutlet
|
| templateUrl | dialog-container.html |
| styleUrl | dialog.scss |
Properties |
Methods |
|
| Protected _captureInitialFocus |
_captureInitialFocus()
|
|
Focus handling after content attachment depending on
Returns :
void
|
| Protected _contentAttached |
_contentAttached()
|
|
After content is attached, kick off the open animation.
Returns :
void
|
| Protected _openAnimationDone | ||||||
_openAnimationDone(totalTime: number)
|
||||||
|
Called when open animation completes to emit "opened" and (optionally) trap focus.
Parameters :
Returns :
void
|
| _startExitAnimation |
_startExitAnimation()
|
|
Public entrypoint called by the ref to start the close sequence.
Returns :
void
|
| _updateActionSectionCount | ||||||
_updateActionSectionCount(delta: number)
|
||||||
|
Tracks action sections; used to toggle a host layout class.
Parameters :
Returns :
void
|
| attachComponentPortal | ||||||
attachComponentPortal(portal: ComponentPortal<T>)
|
||||||
Type parameters :
|
||||||
|
Decorates the root component host element with a class so that card/panel styles can target it specifically when used inside a dialog.
Parameters :
Returns :
ComponentRef<T>
|
| Protected _actionSectionCount |
Type : number
|
Default value : 0
|
|
Count of projected action sections (affects layout class). |
| _animationsEnabled |
Type : unknown
|
Default value : true
|
|
Master flag to enable/disable animations for this container instance. |
| _animationStateChanged |
Type : unknown
|
Default value : new EventEmitter<LegacyDialogAnimationEvent>()
|
|
Emits animation lifecycle states understood by the dialog ref. |