Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

toggle-switch

forgetboy131MIT0.0.2

Toggle switch/button

ember-addon, toggle switch, toggle button

readme

Toggle-switch

A light weight and simple toggle switch/button addon.

INSTALLATION:

ember install:addon toggle-switch

HOW TO USE:

Display barebones

{{toggle-switch}}

Display with default Yes/No text

{{toggle-switch displayToggleMessage=true}}

Display with custom messages

{{toggle-switch displayToggleMessage=true toggleMessageWhenOn="Good" toggleMessageWhenOff="Bad"}}

Note: You may need to adjust the width using css to accommodate custom messages

Listen to toggle action. A 'isOn' value is passed to the listener

{{toggle-switch action="myToggleAction"}}