Does the model "SpecificationFilterModel7Spikes" in SpecificationFilter.cshtml include the number of items included for each filtered attribute?
I would like to display the number of items available next to the filter:
@foreach (SpecificationFilterGroup specificationFilterGroup in Model.SpecificationFilterGroups)
{
Func<int, HelperResult> specificationOptionsHtml =
@<text>
@foreach (SpecificationFilterItem specificationFilterItem in specificationFilterGroup.FilterItems)
{
string filterItemCssClass = "filterItemUnselected";
if (specificationFilterItem.FilterItemState == FilterItemState.Checked)
{
filterItemCssClass = "filterItemSelected";
}
<li>
<a class="@filterItemCssClass" data-option-id="@specificationFilterItem.Id">
@specificationFilterItem.Name
<span style="position: absolute; text-align: right; float: right; right: 0px; color: rgb(153, 153, 153);">@specificationFilterItem.PROPERTY_WITH_ITEM_COUNT</span>
</a>
</li>
}
</text>;