Emitted before animation is started
onAnimation(event: OverlayAnimationEventArgs){
const onAnimation = event;
}
Emitted after the component is appended to the overlay, and before animations are started.
onAppended(event: OverlayEventArgs){
const onAppended = event;
}
Emitted after the component is closed and all animations are finished.
onClosed(event: OverlayEventArgs){
const onClosed = event;
}
Emitted before the component is closed.
onClosing(event: OverlayCancelableEventArgs){
const onClosing = event;
}
Emitted after the component is opened and all animations are finished.
onOpened(event: OverlayEventArgs){
const onOpened = event;
}
Emitted before the component is opened.
onOpening(event: OverlayCancelableEventArgs){
const onOpening = event;
}
Generates Id. Provide this Id when call show(id, settings?)
method
Display settings for the overlay, such as positioning and scroll/close behavior.
Id of the created overlay. Valid until onClosed
is emitted.
Generates Id. Provide this Id when call show(id, settings?)
method
Component Type to show in overlay
Display settings for the overlay, such as positioning and scroll/close behavior.
Optional reference to an object containing Injector and ComponentFactoryResolver that can resolve the component's factory
Id of the created overlay. Valid until onClosed
is emitted.
Hides the component with the ID provided as a parameter.
this.overlay.hide(id);
Hides all the components and the overlay.
this.overlay.hideAll();
Repositions the component with ID provided as a parameter.
this.overlay.reposition(id);
Offsets the content along the corresponding axis by the provided amount
this.overlay.setOffset(id, deltaX, deltaY);
Shows the overlay for provided id.
Id to show overlay for
Display settings for the overlay, such as positioning and scroll/close behavior.
Shows the provided component.
ElementRef or Component Type to show in overlay
Display settings for the overlay, such as positioning and scroll/close behavior.
Id of the created overlay. Valid until onClosed
is emitted.
this.overlay.show(element, settings);
Documentation The overlay service allows users to show components on overlay div above all other elements in the page.