imageを持つテーブルのセルのツールチップまたはタイトルを2000文字で取得しようとしています。さまざまなことを試してみましたが、解決策を得ることはできません。助けてください。 2000文字がある場合、上記のコード列の私のコード、jqgrid - 2000 +文字で表示されないセルのツールヒントまたはタイトル
{
name: 'comments',
index: 'comments',
width: 80,
align: 'center',
resizable: true,
sortable: false,
editable: false,
cellattr: function(rowId, val, rawObject) {
return 'title="' + val + '"'
},
formatter: function(cellvalue, options, rowobject) {
if (cellvalue.length <= 0) {
return cellvalue;
} else {
var image = "<img src='/images/comment.png' />";
return image;
}
}
},
第2の符号裁判、
{
name: 'comments',
index: 'comments',
width: 80,
align: 'center',
resizable: true,
sortable: false,
editable: false,
formatter: function(cellvalue, options, rowobject) {
if (cellvalue.length <= 0) {
return cellvalue;
} else {
var image = "<img src='/images/comment.png' title='Comments:\n" + cellvalue + "'/>";
return image;
}
}
},
は、任意のツールチップが表示されませんでした。
もこれは非常に遅いヒントを読み込んで、
var image = '<figure><img src='/images/comment.png' title='Comments:\n"+cellvalue+"'/></figure>';
を試みました。 助けてください。
は、応答をありがとうございました。私はこれを試してみましたが、私のjqgridテーブルではこのオプションはうまくいかなかった:( – maddy