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

SplitDropdown

Extends:

flarum/components/Dropdown~Dropdown → 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.

Static Public Methods

public static initProps(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Methods

public getButton(): undefined[] source

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:

*