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

SplitDropdown

Extends:

src/common/Component.js~ComponentDropdown → SplitDropdown

The SplitDropdown component is similar to Dropdown, but the first child is displayed as its own button prior to the toggle button.

Static Method Summary

Static Public Methods
public static

initProps(props: *)

Method Summary

Public Methods
public
Protected Methods
protected

Get the first child.

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

Get the template for the button.

Override:

Dropdown#getButton

Return:

undefined[]

Protected Methods

protected getFirstChild(): * source

Get the first child. If the first child is an array, the first item in that array will be returned.

Return:

*