@for (node of treeNodes(); track $index) {
@let expandable = node.row.expandable();
@let checked = nodeChecked(node);
@if (expandable) {
} @else if (node.reserveExpander) {
}
@if (checked !== null) {
}
@if (asOption(node.row); as option) {
@let tile = option.iconTile();
@if (tile) {
}
}
{{ node.row.label() }}
@if (asSection(node.row); as section) {
} @else if (asOption(node.row); as option) {
@let count = optionCounts().get(option);
@if (count != null) {
{{
count
}}
}
}
}
@if (noResults()) {
@if (!multiple()) {
@let allSelected = isSelected(clearValue);
}
@for (entry of entries(); track $index) {
@if (asSection(entry); as section) {
@if (rowVisible(section)) {
@if (section.collapsible()) {
} @else {
{{ section.label() }}
}
@if (section.open()) {
@for (option of section.options(); track option.value()) {
@if (rowVisible(option)) {
}
}
}
}
} @else if (asOption(entry); as option) {
@if (rowVisible(option)) {
}
}
}
@if (noResults()) {
}
}