Reference Source
import SelectDropdown from 'flarum/common/components/SelectDropdown'
public class | source

SelectDropdown

Extends:

src/common/Component.js~ComponentDropdown → SelectDropdown

Direct Subclass:

SettingDropdown

The SelectDropdown component is the same as a Dropdown, except the toggle button's label is set as the label of the first child which has a truthy active prop.

Attrs

  • caretIcon
  • defaultLabel

Static Method Summary

Static Public Methods
public static

initAttrs(attrs: *)

Method Summary

Public Methods
public

getButtonContent(children: *): undefined[]

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(children: *): undefined[] source

Get the template for the button's content.

Override:

Dropdown#getButtonContent

Params:

NameTypeAttributeDescription
children *

Return:

undefined[]