Reference Source
import SessionDropdown from 'flarum/compone/SessionDropdown'
public class | source

SessionDropdown

Extends:

src/common/Component.js~ComponentDropdown → 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(): *

Inherited Summary

From class Dropdown
public
public

getMenu(menuClassName: *, items: *): *

public

initAttrs(attrs: *)

public

oncreate(vnode: *)

public

oninit(vnode: *)

public

view(vnode: *): *

protected

getButton(attrs: *, children: *): *

Get the template for the button.

protected

getButtonContent(attrs: *, children: *): *

Get the template for the button's content.

Static Public Methods

public static initProps(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Methods

public getButtonContent(): undefined[] source

Get the template for the button's content.

Override:

Dropdown#getButtonContent

Return:

undefined[]

public items(): ItemList source

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

Return:

ItemList

public view(): * source

Override:

Dropdown#view

Return:

*