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

Select

Extends:

src/common/Component.js~Component → Select

The Select component displays a <select> input, surrounded with some extra elements for styling. It accepts the following attrs:

  • options A map of option values to labels.
  • onchange A callback to run when the selected value is changed.
  • value The value of the selected option.
  • disabled Disabled state for the input.

Method Summary

Public Methods
public

view(): *

Public Methods

public view(): * source

Return:

*