Reference Source
import NotificationList from 'flarum/components/NotificationList'
public class | source

NotificationList

Extends:

src/common/Component.js~Component → NotificationList

The NotificationList component displays a list of the logged-in user's notifications, grouped by discussion.

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public

content(state: *): *

public

inPanel(): *

If the NotificationList component isn't in a panel (e.g. on NotificationPage when mobile), we need to listen to scroll events on the window, and get scroll state from the body.

public

oncreate(vnode: *)

public

onremove(vnode: *)

public
public

view(): *

Public Members

public $notifications: * source

public $scrollParent: * source

public boundScrollHandler: * source

Public Methods

public content(state: *): * source

Params:

NameTypeAttributeDescription
state *

Return:

*

public inPanel(): * source

If the NotificationList component isn't in a panel (e.g. on NotificationPage when mobile), we need to listen to scroll events on the window, and get scroll state from the body.

Return:

*

public oncreate(vnode: *) source

Params:

NameTypeAttributeDescription
vnode *

public onremove(vnode: *) source

Params:

NameTypeAttributeDescription
vnode *

public scrollHandler() source

public view(): * source

Return:

*