Skip to content

Design Library

Notifications

Jenkins can display in-page notifications with a simple-to-use JavaScript API. It enables you to display a short message that disappears after a few seconds. It is typically used to provide feedback for asynchronous operations.

Default
Success
Warning
Error

To show a notification, use:

Default

notificationBar.show('Default')

To show a notification, use:

Success

notificationBar.show('Success', notificationBar.SUCCESS)

To show a notification, use:

Warning

notificationBar.show('Warning', notificationBar.WARNING)

To show a notification, use:

Error

notificationBar.show('Error', notificationBar.ERROR)

Notifications will hide after a few seconds, but you can programmatically hide them with:

notificationBar.hide()