显示 bootstrap 图标和 jqgrid 标题文本

Displaying bootstrap icon along with jqgrid caption text

我试图在 jqgrid 标题部分显示 twitter bootstrap 图标,但是图标没有显示。这是提琴手:https://jsfiddle.net/99x50s2s/31/

尝试过的代码:

jQuery("#sg1").jqGrid({
    datatype: "local",
    gridview: true,
    loadonce: true,
    shrinkToFit: false,
    autoencode: true,
    height: 'auto',
    viewrecords: true,
    sortorder: "desc",
    scrollrows: true,
    loadui: 'disable',
    colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
    colModel:[
        {name:'id',index:'id', width:60, sorttype:"int"},
        {name:'invdate',index:'invdate', width:90, sorttype:"date"},
        {name:'name',index:'name', width:100},
        {name:'amount',index:'amount', width:80, align:"right",sorttype:"float"},
        {name:'tax',index:'tax', width:80, align:"right",sorttype:"float"},     
        {name:'total',index:'total', width:80,align:"right",sorttype:"float"},      
        {name:'note',index:'note', width:150, sortable:false}       
    ],
    caption: "<i class'glyphicon glyphicon-alert'></i> Pending"
});

当前输出:

预计:

我错过了什么吗?是否可以在 jqgrid 标题中显示 bootstrap 图标?请提出建议。

打错了。您缺少 = :

 caption: "<i class'glyphicon glyphicon-alert'></i> Pending"

应该是:

 caption: "<i class='glyphicon glyphicon-alert'></i> Pending"

https://jsfiddle.net/99x50s2s/33/