Reference Source
import SessionDropdown from 'flarum/components/SessionDropdown.js'
public class | source

SessionDropdown

Extends:

flarum/components/Dropdown~Dropdown → SessionDropdown

The SessionDropdown component shows a button with the current user's avatar/name, with a dropdown of session controls.

Static Method Summary

Static Public Methods
public static

initProps(props: *)

Method Summary

Public Methods
public
public

Build an item list for the contents of the dropdown menu.

public

view(): *

Static Public Methods

public static initProps(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Methods

public getButtonContent(): undefined[] source

Return:

undefined[]

public items(): ItemList source

Build an item list for the contents of the dropdown menu.

Return:

ItemList

public view(): * source

Return:

*