Skip to content

searchcraft-results-info

Overview

This web component is designed to display the number of results returned from a search query.

Usage

index.html
<script>
const resultsInfo = document.querySelector('searchcraft-results-info');
resultsInfo.customFormatter = (range, count, responseTime) =>
`${range[0]}-${range[1]} of ${count} results in ${responseTime}ms`;
</script>
<searchcraft-results-info />

Properties

PropertyAttributeDescriptionTypeDefault
customFormatterThe custom formatter for the resulting string.((range: [string, string], count: string, responseTime: string) => void) | undefinedundefined
customStylescustom-stylesThe custom styles object.string | undefinedundefined

Built with StencilJS