Change SharePoint’s “there are no items to show in this view” message
When a list has not data to be shown in the view, we see the following message.
There are no items to show in this view of the “<ListName>” list.
The following JSLink script helps to change this message.
(function () { var overrideCurrentContext = {}; overrideCurrentContext.Templates = {}; overrideCurrentContext.Templates.OnPreRender = changeNoListItemMessage; //OR overrideCurrentContext.OnPreRender = changeNoListItemMessage; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCurrentContext); })(); function changeNoListItemMessage(ctx) { ctx.ListSchema.NoListItem = "No data"; }
Source: http://www.idubbs.com/blog/2015/jslink-csr-to-override-there-are-no-items-to-show-in-this-view/