jqGrid Pager Area - Using Font Awesome Icons

前端 未结 4 1349
心在旅途
心在旅途 2020-11-30 06:06

I would like to use Font Awesome icons:


in the jqGrid pager area instead of the physical images by

4条回答
  •  隐瞒了意图╮
    2020-11-30 06:58

    By looking at answer from Oleg above, I did the following to simplify things. Additional CSS

    .ui-jqgrid .ui-jqgrid-pager .ui-pg-div>span.fntawsm { margin: 0 5px; font-size: 12px; padding-left:2px;padding-right:2px;}
    

    ** padding-left:2px;padding-right:2px; is optional And this only works with icons only with no caption ...

    And then just start adding fontawesome icons in navButtonAdd like

    caption:"", // important for above
    title:"Give any",
    buttonicon:"fntawsm icon-remove"
    buttonicon:"fntawsm icon-eject icon-rotate-90"
    

    etc .. You can use all extra functionality from font-awesome like icon-rotate-XX too. Thisway i did`nt have to remove ui-icon class from spans.

提交回复
热议问题