Toggle Vue Component

Toggle Vue component represents Toggle component.

Toggle Components

There are following components included:

  • f7-toggle

Toggle Properties

Prop Type Default Description
<f7-toggle> properties
init boolean true Initializes Toggle
name string Toggle input name
value string
number
Toggle input value
checked boolean false Defines whether the toggle input is checked or not
disabled boolean false Defines whether the toggle input is disabled or not
readonly boolean false Defines whether the toggle input is readonly or not

Toggle Events

Event Description
<f7-toggle> events
change Event will be triggered when toggle checkbox state changed
toggle:change Event will be triggered when toggle checkbox state changed

Toggle Methods

Event Description
<f7-toggle> methods
.toggle() Toggle checkbox state

Examples

<!-- Checked -->
<f7-toggle checked></f7-toggle>

<!-- Color toggle -->
<f7-toggle color="red"></f7-toggle>

<!-- Disabled -->
<f7-toggle color="orange" disabled></f7-toggle>