mouse0270 / bootstrap-notify

Turns standard Bootstrap alerts into "Growl-like" notifications.
http://bootstrap-notify.remabledesigns.com/
MIT License
2.25k stars 641 forks source link

NEW TEMPLATE FOR MATERIAL-ICONS material.io/tools/icons "Material Design Google" #207

Open Appsfa opened 6 years ago

Appsfa commented 6 years ago

template: '

'

//MODIFY Function setIcon

setIcon: function () { if (this.settings.icon_type.toLowerCase() === 'class') { this.$ele.find('[data-notify="icon"]').html(this.settings.content.icon); } else { if (this.$ele.find('[data-notify="icon"]').is('img')) { this.$ele.find('[data-notify="icon"]').attr('src', this.settings.content.icon); } else { this.$ele.find('[data-notify="icon"]').append('Notify Icon'); } } }