Reference Source
import SessionDropdown from 'flarum/forum/components/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

initAttrs(attrs: *)

Method Summary

Public Methods
public
public

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

public

view(vnode: *): *

Inherited Summary

From class Dropdown
public static

initAttrs(attrs: *)

public
public

getMenu(items: *): *

public

oncreate(vnode: *)

public

oninit(vnode: *)

public

view(vnode: *): *

protected

getButton(children: *): *

Get the template for the button.

protected

getButtonContent(children: *): *

Get the template for the button's content.

Static Public Methods

public static initAttrs(attrs: *) source

Override:

Dropdown#initAttrs

Params:

NameTypeAttributeDescription
attrs *

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(vnode: *): * source

Override:

Dropdown#view

Params:

NameTypeAttributeDescription
vnode *

Return:

*