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

DiscussionListState

Extends:

src/common/states/PaginatedListState.js~PaginatedListState → DiscussionListState

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public get

Method Summary

Public Methods
public

addDiscussion(discussion: undefined)

Add a discussion to the top of the list.

public

clear()

public
public

getPages(): *

public

In the last request, has the user searched for a discussion?

public

loadPage(page: undefined): *

public
public
public

sortMap(): *

Get a map of sort keys (which appear in the URL, and are used for translation) to the API sort value that they represent.

Public Constructors

public constructor() source

Public Members

public extraDiscussions: *[] source

public initialLoading: boolean source

public get type: string source

Public Methods

public addDiscussion(discussion: undefined) source

Add a discussion to the top of the list.

Params:

NameTypeAttributeDescription
discussion undefined

public clear() source

public getAllItems(): * source

Return:

*

public getPages(): * source

Return:

*

public isSearchResults(): * source

In the last request, has the user searched for a discussion?

Return:

*

public loadPage(page: undefined): * source

Params:

NameTypeAttributeDescription
page undefined

Return:

*

public removeDiscussion(discussion: undefined) source

Params:

NameTypeAttributeDescription
discussion undefined

public requestParams(): * source

Return:

*

public sortMap(): * source

Get a map of sort keys (which appear in the URL, and are used for translation) to the API sort value that they represent.

Return:

*