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
Post a Comment