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

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

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

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 -