jsRender - How to show a message when there's no data to display -


Does anybody know that in the JSRender ??? I would ask because I would like to show a message in an HTML table, which was created using a template, when there is no data.

Thanks in advance.

when using {{}}} loop on an array However, you can use {{else}} for the case where the array is empty.

See - Example in the section where the following is shown:

  {{for members}}  {{else}} & lt; Div & gt; No members! & Lt; / Div & gt; {{}}    

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -