@for (node of nodes(); track node.id) { }
@if (draggingId()) {
}
@let folder = node.children !== undefined; @let overInside = isOver(node.id, 'inside'); @let overBefore = isOver(node.id, 'before'); @let overAfter = isOver(node.id, 'after'); @let indentPx = level * indent();
@if (folder) { @if (folderTpl(); as tpl) { } } @else { @if (itemTpl(); as tpl) { } }
@if (folder && node.expanded) { @let childLevel = level + 1;
@for (child of node.children ?? []; track child.id) { }
}