No Data message for a List view

I found out from Nick at Knack that there's no built in way to show a No Data message for a List. He cooked up this bit of jquery that works perfectly. Thanks a mill Nick.

Substitute your view#.

$(document).on('knack-view-render.view_80', function (event, view, data) {

if($(‘div.kn-list-content’).children().length < 1 ) {

$('#' + view.key + ' .kn-list-content').html('&lt;p&gt;No Data!!&lt;/p&gt;');

}

});

Thanks! I had the same point on my list.

Ah ha... looks like you can change the .view_80 to .any to make it generic.