Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetypescript
{
  id: string;
  field: string | undefined;
  values: Array<LinkListFacetValue>;
  showToggle: boolean;
  toggleText: string;
  expanded: boolean | undefined;
}

...

Code Block
breakoutModewide
languagehtml
<div class='"link-list-facet'">
    <ul class='"link-list-facet__list'">
        {{#each values}}
            {{#if visible}}
                <li class='"link-list-facet__list__item'">
                    <a<span hawksearch-facet-value='"{{value}}'" class='"link facet__value'" tabindex="-1">
                        {{#if imageUrl}}
                            <img src="{{imageUrl}}" alt="{{title}}" title="{{title}}" class='"facet__value__image'" />
                        {{else}}
                            <span class='"facet__value__title'">{{title}}</span>
                        {{/if}}
                        <span class='"facet__value__count'">({{count}})</span>
                    </a>span>
                </li>
            {{/if}}
        {{/each}}
    </ul>
    {{#if showToggle}}
        <a<span hawksearch-facet-toggle class='"link facet__toggle'" tabindex="-1">{{toggleText}}</a>span>
    {{/if}}
</div>