Data-remove attribute demo


Example list

  • A list item


The item in the template is removed from the list by default by the "data-remove" attribute.
So it becomes empty for new documents.

<h2>Example list</h2>
<ul data-array="List1" data-remove="1" data-placeholder="No items in list">
   <li>A list item</li> 
</ul>

<button data-action="add" data-target="List1">Add new item</button>
<br><br>
<p class="well well-sm">
    The item in the template is removed from the list by default by the "data-remove" attribute.<br>
    So it becomes empty for new documents.
</p>
No JS code used for this example

Output templates

Templates used for document and web page generation:

Friendly Name File Name Template