fontawesome-4.4.0

How to use Font Awesome 5 icons in Laravel 6

浪尽此生 提交于 2020-03-19 06:37:51
问题 I already installed Fontawesome in my package.json . "devDependencies": { "@fortawesome/fontawesome-free": "^5.11.2" , //etc. }, "dependencies": { "font-awesome": "^4.7.0" } and import it to my app.scss @import "~font-awesome/scss/font-awesome.scss"; I tried <i class="fa fa-edit"></i> and <i class="fas fa-edit"></i> but it just shows like this below, someone knows how to do this correctly? 回答1: Firstly import all fontawesome-icons in your app.scss @import '~@fortawesome/fontawesome-free/scss

Add fontawesome icons into select2 V4 dropdown items

心已入冬 提交于 2019-12-07 16:31:25
问题 I am trying to display fontawesome icons in the Select2 v4 dropdown items. But the dropdown is displaying the html and not generating the actual icon. This method works with select2 V3 but does not seem to with v4. Any help is appreciated. Thank you HTML <div class="select2-wrapper"> <select class="input icons_select2"> <option value="fa-dribbble" data-icon="fa-dribbble">Dribbble</option> <option value="fa-dropbox" data-icon="fa-dropbox">Dropbox</option> <option value="fa-facebook" data-icon=

Add fontawesome icons into select2 V4 dropdown items

拟墨画扇 提交于 2019-12-05 22:35:58
I am trying to display fontawesome icons in the Select2 v4 dropdown items. But the dropdown is displaying the html and not generating the actual icon. This method works with select2 V3 but does not seem to with v4. Any help is appreciated. Thank you HTML <div class="select2-wrapper"> <select class="input icons_select2"> <option value="fa-dribbble" data-icon="fa-dribbble">Dribbble</option> <option value="fa-dropbox" data-icon="fa-dropbox">Dropbox</option> <option value="fa-facebook" data-icon="fa-facebook">Facebook</option> </select> </div> JS function iformat(icon) { var originalOption = icon