Example: Extending the tab header
Steps to extend
Navigate to the directory of the current active widget template (e.g. Mvc\Views\Hawksearch\Hawksearch.Default.cshtml or the relevant resource package).
Copy the file of the base template or select an existing one.
Edit the file adding or replacing the template override for the tabs component:
<script id="vue-hawksearch-tabs" type="x-template"> <div v-if="facet" class="hawk-preview__results_tabs"> <ul class="nav nav-tabs"> <li v-for="tab in tabs" :class="tabClasses(tab)" v-on:click="onClick(tab)"> <a class="nav-link">{{ tab.Label }}</a> </li> </ul> </div> </script>
Apply the desired structure in this format. Proceed with caution with the tabClasses (applies active class) and the onClick handler.
Include the file in the project.
Save, build and reload the site.