fatoggle
jQuery plugin to toggle Font Awesome Icons
Usage
$(selector).fatoggle(['fa-play','fa-pause'], options);
Examples:
OPTIONS:
- radio: (true or false) Font awesome icons used in unordered lists, true will toggle as radio buttons and false allows multiple selections.
- classes: Array of optional font awesome classes to add to selector. Example would be ['fa-3x'] or ['fa-lg','fa-inverse'].
- onClasses: Array of optional font awesome classes to be added when in the toggle on state.
- toggleOn: Function. Called in toggle on state.
- toggleOff: Function. Called in toggle off state.
Features
- Create Toggle buttons with font awesome icons
- Create Radio and checkbox form elements with font awesome icons
- Assign event handlers for toggle on and off
- Designed for Font Awesome 4.2.0 and up
License
This project is licensed under MIT.