🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Fatoggle is a lightweight jQuery plugin which allows you to toggle Font Awesome icons with click events for UI controls.

Checkbox radio-button Toggle-Button Font-Awesome

Documentation

fatoggle

jQuery plugin to toggle Font Awesome Icons

Usage

$(selector).fatoggle(['fa-play','fa-pause'], options);

Examples:

Examples with fatoggle

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.


You May Also Like