Hi,
I try to make a template with condition into a treeview but it does'nt work.
I have au json file like this :
Into the template I would like to make a contition to nodable_type I wrote this code :
<script id="treeTemplate" type="text/x-template">
<div>
${if(nodable_type=='Simonfred\Models\Tag')}
<span>tag</span>
${else}
<span>rep</span>
${/if}
<div class="">${libelle}-${reference}</div>
</div>
</script>
I missed something ?
Thanks