<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>searchstudio-ux-js Archives - SearchStax Docs</title>
	<atom:link href="https://demo.searchstax.com/docs/searchstudio_categories/searchstudio-ux-js/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Documentation</description>
	<lastBuildDate>Wed, 09 Apr 2025 22:24:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.1</generator>

<image>
	<url>https://demo.searchstax.com/docs/wp-content/uploads/2023/10/cropped-favicon-32x32.png</url>
	<title>searchstudio-ux-js Archives - SearchStax Docs</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>What is searchstudio-ux-js</title>
		<link>https://demo.searchstax.com/docs/searchstudio/overview-searchstudio-ux-js/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 26 Jul 2023 09:55:54 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15863</guid>

					<description><![CDATA[<p>What is searchstudio-ux-js Introducing the SearchStax Site Search solution&#8217;s SearchStudio-UX-JS: Empowering Frontend Applications with Stunning Search Experiences SearchStudio-UX-JS is an advanced VanillaJS components library specifically designed to streamline the development&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/overview-searchstudio-ux-js/">Continue reading <span class="screen-reader-text">What is searchstudio-ux-js</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/overview-searchstudio-ux-js/">What is searchstudio-ux-js</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-what-is-searchstudio-ux-js">What is searchstudio-ux-js</h1>



<p>Introducing the <a href="https://www.searchstax.com/site-search/">SearchStax Site Search</a> solution&#8217;s <strong>SearchStudio-UX-JS</strong>:<em> Empowering Frontend Applications with Stunning Search Experiences</em></p>



<p>SearchStudio-UX-JS is an advanced VanillaJS components library specifically designed to streamline the development of exceptional search interfaces within your frontend application.</p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p></p>



<h2 class="wp-block-heading">Goal of the Components Library</h2>



<p>The primary goal of the library is to offer a comprehensive UI ecosystem that seamlessly integrates with your project, taking care of the frontend and UI aspects while harnessing the powerful search functionality of Site Search in the background.</p>



<p>By leveraging searchstudio-ux-js, you gain access to an assortment of ready-to-use components, including a versatile search box, results list, dynamic filters, and more. These components can be effortlessly combined to create distinctive and visually captivating search UIs. The library&#8217;s focus on performance, accessibility, and aesthetic appeal abstracts away complexities, allowing you to concentrate on crafting truly remarkable search experiences.</p>



<h2 class="wp-block-heading">Strengths of searchstudio-ux-js</h2>



<p>One of the key strengths of <strong>SearchStudio-UX-JS</strong> lies in its full integration with <a href="/site-search/">SearchStax Site Search</a>. As a result, you can seamlessly leverage the complete suite of search features offered by Site Search, such as typo tolerance, synonyms, and dynamic filters, without concerning yourself with intricate UI implementation.</p>
</div></div>



<p></p>



<p><a href="/docs/searchstudio/searchstudio-ux-js-getting-started/">Get started</a> now to build awesome search experiences faster than ever before with searchstudio-ux-js.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/overview-searchstudio-ux-js/">What is searchstudio-ux-js</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Getting Started with searchstudio-UX-JS</title>
		<link>https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-getting-started/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 26 Jul 2023 09:59:45 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15865</guid>

					<description><![CDATA[<p>Getting Started with searchstudio-UX-JS The SearchStax Site Search solution includes a JavaScript package to help you assemble a custom search page. Example For a full example, see searchstudio-ux-js. Installation Import&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-getting-started/">Continue reading <span class="screen-reader-text">Getting Started with searchstudio-UX-JS</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-getting-started/">Getting Started with searchstudio-UX-JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-getting-started-with-searchstudio-ux-js">Getting Started with searchstudio-UX-JS</h1>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The <a href="https://www.searchstax.com/site-search/">SearchStax Site Search solutio</a>n includes a JavaScript package to help you assemble a custom search page.</p>



<h2 class="wp-block-heading" id="h-example">Example</h2>



<p>For a full example, see 
<a href="https://www.npmjs.com/package/@searchstax-inc/searchstudio-ux-js">
searchstudio-ux-js</a>. </p>



<h2 class="wp-block-heading" id="h-installation">Installation</h2>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: bash; title: ; notranslate">
npm install --save @searchstax-inc/searchstudio-ux-js
</pre></div>


<h3 class="wp-block-heading">Import</h3>



<p>Import the Searchstax class into your code:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
import Searchstax from &#039;@searchstax-inc/searchstudio-ux-js&#039;;


</pre></div>


<h3 class="wp-block-heading">Instantiation</h3>



<p>Create a new instance of the Searchstax class:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
const searchstax = new Searchstax();


</pre></div>


<h3 class="wp-block-heading">Initialization</h3>



<p>Initialize the Searchstax instance by passing a configuration object:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
searchstax.initialize({
  // options
});


</pre></div>


<p>See the <a href="https://www.npmjs.com/package/@searchstax-inc/searchstudio-ux-js#Initialization" target="_blank" rel="noreferrer noopener">Configuration</a> section for details on the options available.</p>



<h3 class="wp-block-heading">Widgets</h3>



<p>Add widgets by invoking the respective <code>add</code> methods:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
searchstax.addSearchInputWidget({/* options */});
searchstax.addSearchResultsWidget({/* options */});
// etc


</pre></div>


<p>Refer to the <a href="/docs/searchstudio/searchstudio-ux-js-widgets/">Widgets</a> section for details on each widget.</p>



<h3 class="wp-block-heading">Styles</h3>



<p>Import the default CSS styles:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
@import &#039;@searchstax-inc/searchstudio-ux-js/dist/styles/mainTheme.css&#039;;


</pre></div>


<p>See the <a href="/docs/searchstudio/styling/">Styling</a> section for information on theming and customization.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-getting-started/">Getting Started with searchstudio-UX-JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Widget Configuration</title>
		<link>https://demo.searchstax.com/docs/searchstudio/widget-configuration/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 26 Jul 2023 10:40:45 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15897</guid>

					<description><![CDATA[<p>Widget Configuration The SearchStax Site Search solution&#8217;s UI library provides several widgets that can be configured and added to a page. Each widget has a configuration object that defines its&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/widget-configuration/">Continue reading <span class="screen-reader-text">Widget Configuration</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widget-configuration/">Widget Configuration</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-widget-configuration">Widget Configuration</h1>



<p>The SearchStax Site Search solution&#8217;s UI library provides several widgets that can be configured and added to a page. Each widget has a configuration object that defines its options.</p>



<figure class="wp-block-table table table-bordered table-striped"><table><thead><tr><th><strong>Widget</strong></th><th><strong>Description</strong></th><th class="has-text-align-center" data-align="center"><strong>Implementation</strong></th></tr></thead><tbody><tr><td>Input</td><td>Renders the search input box and handles search suggestions/auto-complete</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-search-input/">Input Widget Docs</a></td></tr><tr><td>Results</td><td>Displays the core search results with titles, descriptions, images etc.</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-search-results/">Results Widget Docs</a></td></tr><tr><td>Pagination</td><td>Provides pagination controls and status for search result pages</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-pagination/">Pagination Widget Docs</a></td></tr><tr><td>Facets</td><td>Displays faceted filters that allow drilling down search results</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-facets/">Facets Widget Docs</a></td></tr><tr><td>Search Feedback</td><td>Shows search feedback message with number of results and corrected queries</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-search-feedback/">SearchFeedback Widget Docs</a></td></tr><tr><td>Related Searches</td><td>Displays algorithmically generated related searches for the current query</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-related-searches/">Related Searches Widget Docs</a></td></tr><tr><td>External Promotions</td><td>Renders promotional content from external sources</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-external-promotions/">External Promotions Widget Docs</a></td></tr><tr><td>Sorting</td><td>Provides controls to sort search results by predefined options like date, relevance etc.</td><td class="has-text-align-center" data-align="center"><a href="/docs/searchstudio/widgets-sorting/">Sorting Widget Docs</a></td></tr></tbody></table></figure>



<p></p>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Studio%3A%20UX%20SearchStax%20Studio%20Widget Configuration" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widget-configuration/">Widget Configuration</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Styling</title>
		<link>https://demo.searchstax.com/docs/searchstudio/styling/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 30 Aug 2023 17:51:00 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15892</guid>

					<description><![CDATA[<p>Styling The SearchStax Site Search solution&#8217;s searchstudio-ux-js library comes with a default CSS theme located at: To use the default styling, simply import this CSS file: Customization The default CSS&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/styling/">Continue reading <span class="screen-reader-text">Styling</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/styling/">Styling</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-styling">Styling</h1>



<p>The SearchStax Site Search solution&#8217;s searchstudio-ux-js library comes with a default CSS theme located at:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
node_modules/@searchstax-inc/searchstudio-ux-js/dist/styles/mainTheme.css


</pre></div>


<p>To use the default styling, simply import this CSS file:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
@import &#039;node_modules/@searchstax-inc/searchstudio-ux-js/dist/styles/mainTheme.css&#039;;


</pre></div>


<h3 class="wp-block-heading">Customization</h3>



<p>The default CSS classes can be overridden to customize the styling:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.searchstax-search-input {
  /* Override default input styling */
}

.searchstax-result {
  /* Override result styling */
}

/* Override other CSS class names */


</pre></div>


<p>For more extensive customization, the SCSS source files can be imported and modified:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
@import &#039;node_modules/@searchstax-inc/searchstudio-ux-js/dist/styles/scss/mainTheme.scss&#039;;

// Override SCSS variables and mixins


</pre></div>


<p>See the source SCSS files for the various mixins, variables, and selectors that can be customized.</p>



<h3 class="wp-block-heading">Theming</h3>



<p>To create a new theme, the main SCSS file can be used as a starting point:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
@import &#039;mainTheme.scss&#039;;

// Override variables and custom CSS


</pre></div>


<p>This allows building on top of the default theme with new styling and theme variables.</p>



<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Studio%3A%20UX%20searchstudio-ux-js" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/styling/">Styling</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>JS Widgets</title>
		<link>https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-widgets/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 30 Aug 2023 17:55:02 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15889</guid>

					<description><![CDATA[<p>Widgets for searchstudio-ux-js To learn more about the SearchStax Site Search solution&#8217;s SearchStudio-UX-JS Widgets, follow the links to each page to see the templates and examples: Questions? Do not hesitate&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-widgets/">Continue reading <span class="screen-reader-text">JS Widgets</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-widgets/">JS Widgets</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-widgets-for-searchstudio-ux-js">Widgets for searchstudio-ux-js</h1>



<p>To learn more about the SearchStax Site Search solution&#8217;s SearchStudio-UX-JS Widgets, follow the links to each page to see the templates and examples:</p>



<ul class="wp-block-list">
<li><a href="/docs/searchstudio/widgets-search-input/">Input Widget</a> &#8211; provides the search input field with autosuggest/autocomplete capabilities</li>



<li><a href="/docs/searchstudio/widgets-search-results/">Results Widget</a> &#8211; displays the search results</li>



<li><a href="/docs/searchstudio/widgets-facets/">Facets Widget</a> &#8211; displays faceted filters for search</li>



<li><a href="/docs/searchstudio/widgets-pagination/">Pagination Widget</a> &#8211; displays a pagination control</li>



<li><a href="/docs/searchstudio/widgets-search-feedback/">Search Feedback Widget</a> &#8211; displays search feedback and stats</li>



<li><a href="/docs/searchstudio/widgets-related-searches/">Related Searches Widget</a> &#8211; displays related searches</li>



<li><a href="/docs/searchstudio/widgets-external-promotions/">External Promotions Widget</a> &#8211; displays external promotions</li>



<li><a href="/docs/searchstudio/widgets-sorting/">Sorting Widget</a> &#8211; allows sorting of search results</li>



<li><a href="https://demo.searchstax.com/docs/searchstudio/using-hooks/">Using Hooks</a> &#8211; to customize data flowing back and forth from the UI to Solr. </li>



<li><a href="https://demo.searchstax.com/docs/searchstudio/interfaces/">Interface Reference</a> &#8211; Interfaces used by the various JS Widgets. </li>
</ul>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Studio%3A%20UX%20searchstudio-ux-js Widgets" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/searchstudio-ux-js-widgets/">JS Widgets</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Input Widget JS</title>
		<link>https://demo.searchstax.com/docs/searchstudio/widgets-search-input/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 30 Aug 2023 17:53:12 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15886</guid>

					<description><![CDATA[<p>Input Widget JS The SearchStax Site Search solution&#8217;s Input widget provides the search input field with autosuggest/autocomplete capabilities. Usage Template Override The input widget template option allows customizing the UI&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/widgets-search-input/">Continue reading <span class="screen-reader-text">Input Widget JS</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-search-input/">Input Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-input-widget-js">Input Widget JS</h1>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The SearchStax Site Search solution&#8217;s Input widget provides the search input field with autosuggest/autocomplete capabilities.</p>



<h3 class="wp-block-heading">Usage</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addSearchInputWidget(container, options);


</pre></div>


<ul class="wp-block-list">
<li><code>container</code> &#8211; The element to render the widget</li>



<li><code>options</code> &#8211; Configuration options (<a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-search-input-interfaces">ISearchstaxSearchInputConfig</a>)</li>
</ul>



<h3 class="wp-block-heading">Template Override</h3>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The input widget <code>template</code> option allows customizing the UI templates.</p>



<h3 class="wp-block-heading">mainTemplate</h3>



<p>Main wrapper template for the input box.</p>



<ul class="wp-block-list">
<li>Template model: <code>{}</code> (plain object)</li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  mainTemplate: {
    template: `
      &lt;div class=&quot;input-wrap&quot;&gt;
        &lt;input id=&quot;search-input&quot;&gt;
      &lt;/div&gt;
    `
  }

}


</pre></div>


<h3 class="wp-block-heading">autosuggestItemTemplate</h3>



<p>Renders each autosuggestion item.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-search-interfaces">ISearchstaxSuggestion</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {
  autosuggestItemTemplate: {
    template: &#039;&lt;div&gt;{{term}}&lt;/div&gt;&#039;
  }
}


</pre></div>


<p>This renders the input widget with customized templates and hooks for full control over the input behavior and appearance.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Example</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addSearchInputWidget(&quot;searchstax-input-container&quot;, {
    suggestAfterMinChars: 3,
    hooks: {
      afterAutosuggest: function (result: ISearchstaxSuggestResponse) {

      },
      beforeAutosuggest: function (props: ISearchstaxSuggestProps) {

      },
    },
    templates: {
    mainTemplate: {
        template: `
        &lt;div class=&quot;searchstax-search-input-container&quot;&gt;
            &lt;div class=&quot;searchstax-search-input-wrapper&quot;&gt;
                &lt;input type=&quot;text&quot; id=&quot;searchstax-search-input&quot; class=&quot;searchstax-search-input&quot; placeholder=&quot;SEARCH FOR...&quot; /&gt;
                &lt;button class=&quot;searchstax-spinner-icon&quot; id=&quot;searchstax-search-input-action-button&quot;&gt;&lt;/button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
        `,
        searchInputId: &quot;searchstax-search-input&quot;
    }
    autosuggestItemTemplate: {
        template: `
        &lt;div class=&quot;searchstax-autosuggest-item-term-container&quot;&gt;{{{term}}}&lt;/div&gt;
        `,
    }
    },
  });


</pre></div>


<h3 class="wp-block-heading" id="questions">Questions?</h3>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=SearchJS%20Developer%20Question" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-search-input/">Input Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Results Widget JS</title>
		<link>https://demo.searchstax.com/docs/searchstudio/widgets-search-results/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 30 Aug 2023 18:02:20 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15881</guid>

					<description><![CDATA[<p>Results Widget JS The SearchStax Site Search solution&#8217;s Results Widget for UX-JS displays the search results. Usage Template Override The result widget template option allows customizing the UI templates. mainTemplate&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/widgets-search-results/">Continue reading <span class="screen-reader-text">Results Widget JS</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-search-results/">Results Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-results-widget-js">Results Widget JS</h1>



<hr class="wp-block-separator has-css-opacity"/>



<div class="wp-block-group"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p>The SearchStax Site Search solution&#8217;s Results Widget for UX-JS displays the search results.</p>



<h3 class="wp-block-heading">Usage</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: plain; title: ; notranslate">
searchstax.addSearchResultsWidget(container, options);


</pre></div>


<ul class="wp-block-list">
<li><code>container</code> &#8211; The element to render the widget</li>



<li><code>options</code> &#8211; Configuration options (<a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-search-results-interfaces">ISearchstaxSearchResultsConfig</a>)</li>
</ul>



<h2 class="wp-block-heading">Template Override</h2>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The result widget <code>template</code> option allows customizing the UI templates.</p>



<h3 class="wp-block-heading">mainTemplate</h3>



<p>Main wrapper template for the results section.</p>



<ul class="wp-block-list">
<li>Template model: <code>{}</code> (plain object)</li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  mainTemplate: {
    template: `
      &lt;div class=&quot;results-wrap&quot;&gt;
        &lt;div id=&quot;results&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
    `
  }

}


</pre></div>


<h3 class="wp-block-heading">searchResultTemplate</h3>



<p>Template for each individual search result.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-search-results-interfaces">ISearchstaxParsedResult</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  searchResultTemplate: {
    template: `
      &lt;div class=&quot;result&quot;&gt;
        &lt;h3&gt;{{title}}&lt;/h3&gt;
        &lt;p&gt;{{description}}&lt;/p&gt;
      &lt;/div&gt;
    `
  }

}


</pre></div>


<h3 class="wp-block-heading">noSearchResultTemplate</h3>



<p>Template shown when there are no results.</p>



<ul class="wp-block-list">
<li>Template model:
<ul class="wp-block-list">
<li><code>spellingSuggestion</code> &#8211; Suggested spelling correction</li>



<li><code>searchTerm</code> &#8211; Search term used</li>
</ul>
</li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  noSearchResultTemplate: {
    template: `
      &lt;div&gt;
        No results found for &lt;b&gt;{{searchTerm}}&lt;/b&gt;.

        {{#spellingSuggestion}}
          Did you mean &lt;b&gt;{{spellingSuggestion}}&lt;/b&gt;?
        {{/spellingSuggestion}}
      &lt;/div&gt;
    `
  }

}


</pre></div>


<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Example</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addSearchResultsWidget(&#039;results&#039;, {

  templates: {

    mainTemplate: {
      template: `
        &lt;div id=&quot;results-container&quot;&gt;&lt;/div&gt;
      `,
      searchResultsContainerId: &#039;results-container&#039;
    },

    searchResultTemplate: {
      template: `
        &lt;div class=&quot;result&quot;&gt;
          &lt;a href=&quot;{{url}}&quot; data-id=&quot;{{id}}&quot;&gt;&lt;/a&gt;
          &lt;!-- result content --&gt;
        &lt;/div&gt;
      `,
      searchResultUniqueIdAttribute: &#039;data-id&#039;
    },

    noSearchResultTemplate: {
      template: `
        &lt;div&gt;No results found.&lt;/div&gt;
      `
    }

  },

  hooks: {
    afterLinkClick: (result) =&gt; {
      // handle click
    }
  }

});


</pre></div>


<p>This renders the results widget using custom templates and hooks for handling search result clicks.</p>



<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Studio%3A%20External%20Promotions%20in%20SearchJS Results Widget" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
</div></div>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-search-results/">Results Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Facets Widget JS</title>
		<link>https://demo.searchstax.com/docs/searchstudio/widgets-facets/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 30 Aug 2023 18:01:31 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15879</guid>

					<description><![CDATA[<p>Facets Widget JS The SearchStax Site Search solution&#8217;s Facets Widget for UX-JS displays faceted filters for search. Facet Selection and Order Facet lists are configured and ordered on the Site&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/widgets-facets/">Continue reading <span class="screen-reader-text">Facets Widget JS</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-facets/">Facets Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-facets-widget-js">Facets Widget JS</h1>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The SearchStax Site Search solution&#8217;s Facets Widget for UX-JS displays faceted filters for search.</p>



<div class="alert alert-info">
<h3>Facet Selection and Order</h3>
<p>Facet lists are configured and ordered on the Site Search <a href="https://demo.searchstax.com/docs/searchstudio/faceting-tab/">Faceting Tab</a>. </p>
</div>



<h3 class="wp-block-heading">Usage</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addFacetsWidget(container, options);


</pre></div>


<ul class="wp-block-list">
<li><code>container</code> &#8211; The element to render the widget</li>



<li><code>options</code> &#8211; Configuration options (<a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">ISearchstaxSearchFacetsConfig</a>)</li>
</ul>



<h3 class="wp-block-heading"><strong>Multiple Instances</strong></h3>



<p>Multiple instances of the Facets widget can be added by calling the <code>addFacetsWidget</code> method multiple times with different target containers:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addFacetsWidget(&#039;container1&#039;, options1);

searchstax.addFacetsWidget(&#039;container2&#039;, options2);

</pre></div>


<p>Each instance can be configured separately via its options object. This allows for the widget to be added to different locations on the page as needed.</p>



<h2 class="wp-block-heading">Template Override</h2>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The facet widget <code>template</code> option allows customizing the UI templates.</p>



<h3 class="wp-block-heading">mainTemplateDesktop</h3>



<p>Main wrapper template for desktop facets display.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">IFacetsTemplateData</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  mainTemplateDesktop: {
    template: `
      &lt;div class=&quot;desktop-facets&quot;&gt;&lt;/div&gt;
    `,
    facetsContainerId: &#039;desktop-facets&#039;
  }

}


</pre></div>


<h3 class="wp-block-heading">mainTemplateMobile</h3>



<p>Main wrapper template for mobile facets display.</p>



<ul class="wp-block-list">
<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  mainTemplateMobile: {
    template: `
      &lt;div class=&quot;mobile-facets&quot;&gt;&lt;/div&gt;
    `,
    facetsContainerId: &#039;mobile-facets&#039;
  }

}


</pre></div>


<h3 class="wp-block-heading">showMoreButtonContainerTemplate</h3>



<p>Template for the show more button when collapsing facets.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">IFacetData</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  showMoreButtonContainerTemplate: {
    template: `
      &lt;div class=&quot;show-more&quot;&gt;
        Show More
      &lt;/div&gt;
    `,
    showMoreButtonClass: &#039;show-more&#039;
  }

}


</pre></div>


<h3 class="wp-block-heading">facetItemContainerTemplate</h3>



<p>Template for each facet group.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">IFacetData</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  facetItemContainerTemplate: {
    template: `
      &lt;div class=&quot;facet-group&quot;&gt;
        &lt;div class=&quot;facet-group-name&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;facet-options&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
    `,

    facetListTitleContainerClass: &#039;facet-group-name&#039;,
    facetListContainerClass: &#039;facet-options&#039;
  }

}


</pre></div>


<h3 class="wp-block-heading">clearFacetsTemplate</h3>



<p>Template for clear all filters button.</p>



<ul class="wp-block-list">
<li>Template model: <code>{shouldShow: boolean}</code></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  clearFacetsTemplate: {
    template: `
      &lt;div class=&quot;clear-filters&quot;&gt;
        Clear All Filters
      &lt;/div&gt;
    `
  }

}


</pre></div>


<h3 class="wp-block-heading">facetItemTemplate</h3>



<p>Template for each facet value item.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">IFacetValueData</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  facetItemTemplate: {
    template: `
      &lt;input type=&quot;checkbox&quot; class=&quot;facet-checkbox&quot;&gt;
      &lt;div class=&quot;facet-label&quot;&gt;{{label}} ({{count}})&lt;/div&gt;
    `
  }

}


</pre></div>


<h3 class="wp-block-heading">filterByTemplate</h3>



<p>Template for the filter by pill.</p>



<ul class="wp-block-list">
<li>Template model: <code>{}</code> (plain object)</li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  filterByTemplate: {
    template: `
      &lt;div class=&quot;filter-pill&quot;&gt;
        Filter By
      &lt;/div&gt;
    `
  }

}


</pre></div>


<h3 class="wp-block-heading">selectedFacetsTemplate</h3>



<p>Template for selected facet pills.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">IFacetValue</a> | <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-facets-interfaces">IFacetValueRange</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  selectedFacetsTemplate: {
    template: `
      &lt;div class=&quot;selected-facet-pill&quot;&gt;
        {{label}} ({{count}})
        &lt;span class=&quot;remove&quot;&gt;&lt;/span&gt;
      &lt;/div&gt;
    `
  }

}


</pre></div>


<p>The <code>IFacetValueRange</code> interface is for numeric range facets.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Example</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addFacetsWidget(&#039;searchstax-facets-container&#039;, {

  facetingType: &#039;and&#039;,

  itemsPerPageDesktop: 5,
  itemsPerPageMobile: 3,

  templates: {

    mainTemplateDesktop: {
      template: `
        &lt;div class=&quot;desktop-facets&quot;&gt;&lt;/div&gt;
      `,
      facetsContainerId: &#039;desktop-facets&#039;
    },

    mainTemplateMobile: {
      template: `
        &lt;div class=&quot;mobile-facets&quot;&gt;&lt;/div&gt;
      `,
      facetsContainerId: &#039;mobile-facets&#039;
    },

    showMoreButtonContainerTemplate: {
      template: `
        &lt;div class=&quot;show-more&quot;&gt;
          Show More
        &lt;/div&gt;
      `,
      showMoreButtonClass: &#039;show-more&#039; 
    },

    facetItemContainerTemplate: {
      template: `
        &lt;div class=&quot;facet-group&quot;&gt;
          &lt;div class=&quot;facet-group-name&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;facet-options&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
      `,
      facetListTitleContainerClass: &#039;facet-group-name&#039;,
      facetListContainerClass: &#039;facet-options&#039;
    },

    // other templates

  }

});

</pre></div>


<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Studio%3A%20External%20Promotions%20in%20SearchJS Facets Widget" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-facets/">Facets Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Pagination Widget JS</title>
		<link>https://demo.searchstax.com/docs/searchstudio/widgets-pagination/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 30 Aug 2023 18:00:39 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15877</guid>

					<description><![CDATA[<p>Pagination Widget JS The SearchStax Site Search solution&#8217;s Pagination Widget displays a pagination control for UX-JS. Usage Multiple Instances Multiple instances of the Pagination widget can be added by calling&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/widgets-pagination/">Continue reading <span class="screen-reader-text">Pagination Widget JS</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-pagination/">Pagination Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-pagination-widget-js">Pagination Widget JS</h1>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The SearchStax Site Search solution&#8217;s Pagination Widget displays a pagination control for UX-JS.</p>



<h3 class="wp-block-heading">Usage</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addPaginationWidget(container, options);


</pre></div>


<ul class="wp-block-list">
<li><code>container</code> &#8211; Element to render widget into</li>



<li><code>options</code> &#8211; Configuration options (<a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-pagination-interfaces">Read more</a>)</li>
</ul>



<h3 class="wp-block-heading"><strong>Multiple Instances</strong></h3>



<p>Multiple instances of the Pagination widget can be added by calling the <code>addPaginationWidget</code> method multiple times with different target containers:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addPaginationWidget(&#039;container1&#039;, options1);

searchstax.addPaginationWidget(&#039;container2&#039;, options2);

</pre></div>


<p>Each instance can be configured separately via its options object. This allows for the widget to be added to different locations on the page as needed.</p>



<h2 class="wp-block-heading">Template Override</h2>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The pagination widget <code>template</code> option allows customizing the UI templates.</p>



<h3 class="wp-block-heading">mainTemplate</h3>



<p>Main template for the pagination controls.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-pagination-interfaces">IPaginationData</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  mainTemplate: {
    template: `
      &lt;div class=&quot;pagination&quot;&gt;

        &lt;button class=&quot;previous {{#isFirstPage}}disabled{{/isFirstPage}}&quot;&gt;
          Previous
        &lt;/button&gt;

        &lt;span class=&quot;page-info&quot;&gt;
          {{startIndex}} - {{endIndex}} of {{totalResults}}
        &lt;/span&gt;

        &lt;button class=&quot;next {{#isLastPage}}disabled{{/isLastPage}}&quot;&gt;
          Next
        &lt;/button&gt;

      &lt;/div&gt;
    `
  }

}


</pre></div>


<p>The <code>IPaginationData</code> interface provides pagination metadata to use in the template.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Example</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addPaginationWidget(&#039;pagination&#039;, {

  templates: {

    mainTemplate: {
      template: `
        &lt;div class=&quot;pagination&quot;&gt;
          &lt;a class=&quot;prev-btn&quot;&gt;&lt;/a&gt;
          &lt;div class=&quot;page-info&quot;&gt;1-10 of 100&lt;/div&gt;
          &lt;a class=&quot;next-btn&quot;&gt;&lt;/a&gt;
        &lt;/div&gt;
      `,
      previousButtonClass: &#039;prev-btn&#039;,
      nextButtonClass: &#039;next-btn&#039;
    }

  }

});


</pre></div>


<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=Studio%3A%20External%20Promotions%20in%20SearchJS Pagination Widget" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-pagination/">Pagination Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Search Feedback Widget JS</title>
		<link>https://demo.searchstax.com/docs/searchstudio/widgets-search-feedback/</link>
		
		<dc:creator><![CDATA[Bruce]]></dc:creator>
		<pubDate>Wed, 26 Jul 2023 23:14:37 +0000</pubDate>
				<guid isPermaLink="false">https://demo.searchstax.com/docs/?post_type=searchstudio&#038;p=15875</guid>

					<description><![CDATA[<p>Search Feedback Widget JS The SearchStax Site Search solution&#8217;s Feedback Widget displays search feedback and stats for UX-JS. Usage Multiple Instances Multiple instances of the SearchFeedback widget can be added&#8230; <a class="more-link" href="https://demo.searchstax.com/docs/searchstudio/widgets-search-feedback/">Continue reading <span class="screen-reader-text">Search Feedback Widget JS</span></a></p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-search-feedback/">Search Feedback Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading" id="h-search-feedback-widget-js">Search Feedback Widget JS</h1>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The SearchStax Site Search solution&#8217;s Feedback Widget displays search feedback and stats for UX-JS.</p>



<h3 class="wp-block-heading">Usage</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addSearchFeedbackWidget(container, options);


</pre></div>


<ul class="wp-block-list">
<li><code>container</code> &#8211; Element to render widget into</li>



<li><code>options</code> &#8211; Configuration options (<a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-search-feedback-interfaces">Read more</a>)</li>
</ul>



<h3 class="wp-block-heading"><strong>Multiple Instances</strong></h3>



<p>Multiple instances of the SearchFeedback widget can be added by calling the <code>addSearchFeedbackWidget</code> method multiple times with different target containers:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addSearchFeedbackWidget(&#039;container1&#039;, options1);

searchstax.addSearchFeedbackWidget(&#039;container2&#039;, options2);

</pre></div>


<p>Each instance can be configured separately via its options object. This allows for the widget to be added to different locations on the page as needed.</p>



<h2 class="wp-block-heading">Template Override</h2>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>The searchFeedback widget <code>template</code> option allows customizing the UI templates.</p>



<h3 class="wp-block-heading">mainTemplate</h3>



<p>Main template for the search feedback message.</p>



<ul class="wp-block-list">
<li>Template model: <a href="https://demo.searchstax.com/docs/searchstudio/interfaces/#h-search-feedback-interfaces">ISearchstaxSearchFeedbackData</a></li>



<li>Usage:</li>
</ul>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
templates: {

  main: {
    template: `
      &lt;div class=&quot;search-feedback&quot;&gt;

        Showing &lt;b&gt;{{startIndex}} - {{endIndex}}&lt;/b&gt; of &lt;b&gt;{{totalResults}}&lt;/b&gt; results for &lt;b&gt;{{searchTerm}}&lt;/b&gt;

        &lt;div class=&quot;searchstax-feedback-container-suggested&quot;&gt;
                  {{#autoCorrectedQuery}}
                    Search instead for &lt;a href=&quot;#&quot; class=&quot;searchstax-feedback-original-query&quot;&gt;{{originalQuery}}&lt;/a&gt;
                  {{/autoCorrectedQuery}}
                &lt;/div&gt;

      &lt;/div&gt;
    `
  }

}


</pre></div>


<p>The <code>ISearchstaxSearchFeedbackData</code> interface provides search metadata to use in the template.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h3 class="wp-block-heading">Example</h3>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: jscript; title: ; notranslate">
searchstax.addSearchFeedbackWidget(&#039;search-feedback-container&#039;, {

  templates: {

    main: {
      template: `
        &lt;div class=&quot;feedback&quot;&gt;
          Showing X-Y of Z results for &quot;&lt;query&gt;&quot;
          
          &lt;a class=&quot;original-query&quot;&gt;Did you mean &lt;b&gt;original&lt;/b&gt;?&lt;/a&gt; 
        &lt;/div&gt;
      `,
      originalQueryClass: &#039;original-query&#039;
    }

  }

});

</pre></div>


<h2 class="wp-block-heading" id="questions">Questions?</h2>



<p>Do not hesitate to contact the <a href="mailto:support@demo.searchstax.com?subject=searchstudio-ux-js" target="_blank" rel="noreferrer noopener">SearchStax Support Desk</a>.</p>
<p>The post <a href="https://demo.searchstax.com/docs/searchstudio/widgets-search-feedback/">Search Feedback Widget JS</a> appeared first on <a href="https://demo.searchstax.com/docs">SearchStax Docs</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
