@if (!hideSearch && type === 'check') {
}
@if (checkTemplate() && !listboxSubitems) {
@if (type === 'check' && items.length && !searchElement?.inputValue && !hideSelectAll) {
-
}
@for (item of items; track item) {
-
@if (item.options) {
}
@if (returnBooleanValue(item, 'visible') !== false) {
}
}
@if (footerActionListbox) {
@if (placeholderListbox) {
{{ placeholderListbox }}
}
@if (!placeholderListbox && !items.length) {
{{ literals.noItems }}
}
-
}
} @else {
@if (!items.length && !isServerSearching && type !== 'action' && !footerActionListbox) {
{{ literals.noItems }}
}
}
@if (listboxSubitems) {
@if (!currentGroup) {
@for (item of currentItems; track item) {
-
@if (item.subItems?.length || item.$subItemTemplate) {
} @else if (!item.subItems?.length && returnBooleanValue(item, 'visible') !== false) {
}
}
}
@if (currentGroup) {
@if (currentGroup.$subItemTemplate) {
} @else {
@for (subItem of currentItems; track subItem.label) {
@if (subItem.subItems?.length) {
-
} @else if (!subItem.subItems?.length && returnBooleanValue(subItem, 'visible') !== false) {
-
}
}
}
}
}
@if (isServerSearching && type !== 'action') {
}