All Components

NotificationSettings

closable? boolean

Specifies if the Notification will require a user action to hide.
If the property is set to true, renders a Close button
(see example).

The possible values are:

  • (Default) false
  • true

content string | TemplateRef | Function

Defines the content of the Notification.

height? number

Specifies the height of the Notification.

hideAfter? number

Specifies the time in milliseconds after which the
Notification will hide
(see example).
Defaults to 5000.

width? number

Specifies the width of the Notification.

animation? object

Specifies the animation settings of the Notification
(see example).

The possible values are:

  • duration—Accepts a number in milliseconds. Defaults to 500ms.
  • type?: 'slide'| (Default) 'fade'

position? object

Defines the position of the Notification
(see example).

The possible values are:

  • horizontal: 'left'|'center'|'right'
  • vertical: 'top'|'bottom'

type? object

Specifies the type of the Notification
(see example).

The possible values are:

  • style: (Default) 'none'|'success'|'error'|'warning'|'info'
  • icon: 'true'|'false'
In this article