Reference Source
import NotificationListState from 'flarum/states/NotificationListState'
public class | source

NotificationListState

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

app: *

public
public
public

Method Summary

Public Methods
public

clear()

public
public
public

isLoading(): *

public

load()

Load notifications into the application's cache if they haven't already been loaded.

public

loadMore(): *

Load the next page of notification results.

public

Mark all of the notifications as read.

public

Parse results and append them to the notification list.

Public Constructors

public constructor() source

Public Members

public app: * source

public loading: boolean source

public moreResults: boolean source

public notificationPages: *[] source

Public Methods

public clear() source

public getNotificationPages(): * source

Return:

*

public hasMoreResults(): * source

Return:

*

public isLoading(): * source

Return:

*

public load() source

Load notifications into the application's cache if they haven't already been loaded.

public loadMore(): * source

Load the next page of notification results.

Return:

*

public markAllAsRead() source

Mark all of the notifications as read.

public parseResults(results: Notification[]): Notification[] source

Parse results and append them to the notification list.

Params:

NameTypeAttributeDescription
results Notification[]

Return:

Notification[]