<%const SearchAndSortThreshold = 2;
%><%_ if (typeof(disableSortSelection) == 'undefined' || !disableSortSelection) {
let sortableFields = briefView.filter(x=> {
return x.sortable &&
!x.hidden &&
!x.exclusiveRequiredWith && !x.exclusiveRequired &&
!listCategoryFieldsNotShown.includes(x.fieldName);
});
if (sortableFields.length > 0) {
%>
<%-SearchAndSortThreshold%>" class="sort-selection me-5 mt-1">
<%} }%>
<% if (typeof showExport !== 'undefined' && showExport && api.includes('E')) {%>
Export to excel
<%}%>
<%_ if (typeof(disableViewSwitch) == 'undefined' || !disableViewSwitch) {
if (widgetDef.views.length > 1) {
%>
0">
<%_ for (let widget of widgetDef.views) {%>
')" type="radio" name="view-filter" id="<%-widget%>-view" class="view-radio"
(click)="setListViewFilter('<%-widget%>')" [checked]="isShowListView('<%-widget%>')">
<%- include(`/widgets/list-view/${widget}/icon.html`); %>
<%_ }%>
<%_ } } %>
<%-SearchAndSortThreshold%>">Total: {{totalCount}} <%_ if (typeof(disableRefreshIcon) == 'undefined' || !disableRefreshIcon) {
%><%if(api.includes('D') || api.includes('A') ){%>
1"> All <%}%>
<%}%>