我試圖在jqgrid標題部分顯示twitter引導程序圖標,但圖標未顯示。這裏是小提琴手:https://jsfiddle.net/99x50s2s/31/顯示bootstrap圖標以及jqgrid標題文字
代碼嘗試:
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標題中顯示引導程序圖標?請建議。
嘗試添加$( 'UI-jqGrid的標題。 ')addClass(' glyphicon glyphicon警報')。 ; – Sushil
@Sushil,它沒有工作。 –
嘗試此https://jsfiddle.net/99x50s2s/32/ – Sushil