jslink只有在我参与cisar督察时才会呈现

时间:2017-06-26 15:09:05

标签: sharepoint sharepoint-online jslink

Cisar验证jslink被正确调用,但是当我用cisar检查器打开文件时,只发生 。怪异。

(function () {


var overrideCtx = {};
overrideCtx.Templates = {};


overrideCtx.Templates.Header = "<div class='row'><div class='col-md-  8'>Title</div><div class='col-md-1'>Screen 16x9</div><div class='col-md-1'>Print</div><div class='col-md-2'>Updated</div>";
overrideCtx.Templates.Footer = "</div>";
overrideCtx.Templates.Item = CustomItem;


SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);

})();

function CustomItem(ctx) {
// Build a listitem entry for every announcement in the list.    
var ret = "<div class='col-md-8'>" + ctx.CurrentItem.Title + "</div><div class='col-md-1'><a href='https://domain/subsite/library/" + ctx.CurrentItem.FileLeafRef + "'><i class='fa fa-tv fa-2x'></i></a></div><div class='col-md-1'><a href='" + ctx.CurrentItem.Print_x0020_4x3 + "'><i class='fa fa-print fa-2x'></i></a> </div>" "<div class='col-md-2'>" + ctx.CurrentItem.Updated +  " </div>"
;

return ret;
}

0 个答案:

没有答案