PygmySlowLoris / vue-fab

Vue Floating Action Button
MIT License
273 stars 51 forks source link

Loading the icon through a variable does not work #48

Closed migro1982 closed 3 years ago

migro1982 commented 3 years ago

Any ideas?

Screenshot 2020-09-13 223528

This is my code where I define the parameters

data: function () { return { fullscreenicon: 'fullscreen',

  bgColor: 'blueviolet',
  position: 'bottom-right',

  fabActions: [
    {
      name: 'pFullscreen',
      icon: this.fullscreenicon
    },
    {
      name: 'pAlert',
      icon: 'add_alert'
    },
    {
      name: 'pAdd',
      icon: 'add'
    },
    {
      name: 'pInfo',
      icon: 'info'
    }
  ]

} }