Ferris Wheel Button Plugin - Custom Font


Here we Use Another font-family - Material Icons

1. Include Material icon font family

<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

2. Override generate and pass custom font icon

 var options = {
    'primaryIcon': 'launch', //Material Button
    'closeIcon':'close',
    'fontIcon':'material-icons'
  };

  var links = [
    'android',
    'build',
    'face'
  ];

  
  $.ferrisWheelButton.generate = function(icon,fontIcon){
    //Internally fontIcon refers to the setting you passed in options
    return  $('<i></i>').addClass(fontIcon).text(icon);
  };
  

  $.ferrisWheelButton(options,links);