Class: NotificationButton

NotificationButton(options)

new NotificationButton(options)

A notification button for displaying a notifications overlay

Parameters:
Name Type Description
options Object

Configuration options

Properties
Name Type Description
notificationIconClass string

e.g. mw-ui-icon for icon

hasUnseenNotifications boolean

whether the user has unseen notifications

notificationCountRaw number

number of unread notifications

title string

tooltip for badge

url string

to see all notifications

hasNotifications boolean

whether the user has unseen notifications

onClick function

handler for when the badge is clicked

Source:

Extends

  • View