PopupComponent
Represents the Kendo UI Popup component for Angular.
@Component({
selector: 'my-app',
template: `
<button #anchor (click)="show=!show">Toggle</button>
<kendo-popup *ngIf="show" [anchor]="anchor">
<strong>Popup content!</strong>
</kendo-popup>
`
})
class AppComponent {
public show: boolean = false;
}
Selector
kendo-popup
Export Name
Accessible in templates as #kendoPopupInstance="kendo-popup"
Inputs
Name | Type | Default | Description |
---|---|---|---|
anchor |
|
Specifies the element that will be used as an anchor. The Popup opens next to that element. (see example). | |
anchorAlign |
|
Specifies the anchor pivot point (see example). | |
animate |
|
Controls the Popup animation. By default, the opening and closing animations are enabled (see example). | |
collision |
|
Configures the collision behavior of the Popup (see example). | |
copyAnchorStyles |
|
Controls whether the component will copy the | |
margin |
|
Specifies the margin value that will be added to the popup dimensions in pixels and leaves a blank space between the popup and the anchor (see example). | |
offset |
|
Specifies the absolute position of the element
(see example).
The Popup opens next to that point. The Popup pivot point is defined by the | |
popupAlign |
|
Specifies the pivot point of the Popup (see example). | |
popupClass |
|
Specifies a list of CSS classes that will be added to the internal animated element (see example).
| |
positionMode |
|
Specifies the position mode of the component. By default, the Popup uses fixed positioning.
To make the Popup acquire absolute positioning, set this option to
use the html
ts
|
Events
Name | Type | Description |
---|---|---|
anchorViewportLeave |
|
Fires when the anchor is scrolled outside the screen boundaries. (see example). |
close |
|
Fires after the component is closed. |
open |
|
Fires after the component is opened and the opening animation ends. |
positionChange |
|
Fires after the component is opened and the Popup is positioned. |