Class IgxBannerComponent

Ignite UI for Angular Banner - Documentation

The Ignite UI Banner provides a highly template-able and easy to use banner that can be shown in your application.

Usage:

<igx-banner #banner>
Our privacy settings have changed.
<igx-banner-actions>
<button type="button" igxButton="raised">Read More</button>
<button type="button" igxButton="raised">Accept and Continue</button>
</igx-banner-actions>
</igx-banner>

Implements

Constructors

Properties

closed: EventEmitter<BannerEventArgs> = ...

Fires after the banner hides

public handleClosed(event) {
...
}
<igx-banner (closed)="handleClosed($event)"></igx-banner>
closing: EventEmitter<BannerCancelEventArgs> = ...

Fires before the banner hides

public handleClosing(event) {
...
}
<igx-banner (closing)="handleClosing($event)"></igx-banner>
cssClass: string = 'igx-banner-host'
elementRef: ElementRef<HTMLElement>
opened: EventEmitter<BannerEventArgs> = ...

Fires after the banner shows up

public handleOpened(event) {
...
}
<igx-banner (opened)="handleOpened($event)"></igx-banner>
opening: EventEmitter<BannerCancelEventArgs> = ...

Fires before the banner shows up

public handleOpening(event) {
...
}
<igx-banner (opening)="handleOpening($event)"></igx-banner>

Accessors

  • get animationSettings(): ToggleAnimationSettings
  • Get the animation settings used by the banner open/close methods

    let currentAnimations: ToggleAnimationSettings = banner.animationSettings
    

    Returns ToggleAnimationSettings

  • set animationSettings(settings): void
  • Set the animation settings used by the banner open/close methods

    import { slideInLeft, slideOutRight } from 'igniteui-angular';
    ...
    banner.animationSettings: ToggleAnimationSettings = { openAnimation: slideInLeft, closeAnimation: slideOutRight };

    Parameters

    • settings: ToggleAnimationSettings

    Returns void

Methods