I am currently designing a universal search page. Users input a search query, and all relevant results are displayed. However, I also want to incorporate tabs that users can click on to filter the results further. Currently, the only tab that is functional is the "All" tab because it has the "active" class set. The "All" tab serves as a container for the other tabs. To illustrate, if we wanted to display results for "Events," I would structure the navigation tabs like this...
<div class="search-tab">
<ul class="nav nav-pills">
<li class="active"><a data-toggle="pill" href="#all">All</a></li>
<li><a data-toggle="pill" href="#events_tab">Events</a></li>
<li><a data-toggle="pill" href="#appointments_tab">Appointment</a></li>
<li><a data-toggle="pill" href="#phonecalls_tab">Phone Calls</a></li>
<li><a data-toggle="pill" href="#vendors_tab">Vendors</a></li>
</ul>
</div>
The data to be fetched is then enclosed within the respective div tabs, such as the events_tab
shown below.
<div id="all" class="tab-pane fade in active">
<div class="list-panel table-sort" id="events_tab">
This section will showcase the events related to the search query...
</div>
</div>
This project has exposed me to bootstrap, and any guidance or suggestions would be greatly appreciated. Thank you in advance!