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

Switch

Extends:

flarum/components/Checkbox~Checkbox → Switch

The Switch component is a Checkbox, but with a switch display instead of a tick/cross one.

Static Method Summary

Static Public Methods
public static

initProps(props: *)

Method Summary

Public Methods
public

getDisplay(): *

Static Public Methods

public static initProps(props: *) source

Params:

NameTypeAttributeDescription
props *

Public Methods

public getDisplay(): * source

Return:

*