 ifchildren %}
                    <ul>
                        {% children %}
                    </ul>
                {% endifchildren %}
            </li>
        {% endnav %}
    </ul>

    <div class="btn add icon dashed">{{ selectionLabel }}</div>
</div>

{% if jsClass is defined %}
    {% js %}
        new {{ jsClass }}({
            id: "{{ id   | namespaceInputId   | e('js') }}",
            name: "{{ name | namespaceInputName | e('js') }}",
            elementType: "{{ elementType|e('js') }}",
  