0.0.2 • Published 9 years ago

toggle-switch v0.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

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"}}