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

Select

Extends:

flarum/Component~Component → Select

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

  • 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.

Method Summary

Public Methods
public

view(): *

Public Methods

public view(): * source

Return:

*