jquery-bootgrid icon indicating copy to clipboard operation
jquery-bootgrid copied to clipboard

Icons do not appear

Open skywish opened this issue 8 years ago • 5 comments

Hi author, I download the source code from http://www.jquery-bootgrid.com/GettingStarted#download and I notice that the icons do not appear in demo! I read the codes again and again, finally I know that you forgot to add font-awesome.css.

skywish avatar Dec 12 '15 17:12 skywish

I think what is needed is for the setup docs to indicate that font-awesome should be loaded. Without documenting this need, every person who uses bootgrid runs into this problem. For those less familiar with this technology, missing docs like this can cost a person hours and days of lost time.

blakemcbride avatar Jan 14 '16 17:01 blakemcbride

I like font awesome, but didn't want to add it just for these icons, so I changed jquery.bootgrid.fa.js to use the bootstrap icons instead:

icon: "icon glyphicon", iconColumns: "glyphicon-list", iconDown: "glyphicon-triangle-bottom", iconRefresh: "glyphicon-repeat", iconSearch: "glyphicon-search", iconUp: "glyphicon-triangle-top"

adams141 avatar Feb 24 '16 21:02 adams141

#adams141 please where do we add this line of code and can you please show us how to use it. i will be very gratefull, am having issues using it. Thanks

jgodstime avatar Mar 16 '18 04:03 jgodstime

#jgodstime , there really isn't much code in jquery.bootgrid.fa.js besides what I posted, though the formatting is off. Just replace the css classes with:

`icon: "icon glyphicon",

iconColumns: "glyphicon-list",

iconDown: "glyphicon-triangle-bottom",

iconRefresh: "glyphicon-repeat",

iconSearch: "glyphicon-search",

iconUp: "glyphicon-triangle-top"`

adams141 avatar Mar 19 '18 11:03 adams141

The solution to move from fontawesome back to bootstrap icons doesnt work for bootstrap 4 since the glyphicons are gone. Anyone wanting to target bootstrap 4 should ust use the fontawesome icons. This is of course made extremety confusing by the fact jquery-bootgrid 1.3.1. changed the defaults to use bootstrap 3 glyphicon as suggested above. There is a solution provided in bootgrid . Just add as well,. IT reverts back to fontawesome.

MenaceSan avatar Nov 05 '18 14:11 MenaceSan