Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Search input and results with dropdown


Hello Team,

I am trying to implement a search and results should be shown as a dropdown,
which component or code should I use to get the correct results? I am using Laravel with code below but I see search results on the right side of the pane, how do I get as a dropdown?

```
<div class="d-flex align-items-center overflow-auto">
<!--begin::Search-->
<div class="position-relative my-1">
<i class="ki-duotone ki-magnifier fs-3 text-gray-500 position-absolute top-50 translate-middle-y ms-3"><span class="path1"></span><span class="path2"></span></i>
<input type="text" class="form-control form-control-sm form-control-solid w-150px ps-10" wire:model.live="key" placeholder="Search...">
</div>
<!--end::Search-->

@if(sizeof($results) > 0)
<div class="menu menu-rounded menu-column menu-gray-600 menu-state-bg fw-semibold w-250px" data-kt-menu="true">
<!--begin::Menu item-->
<div class="menu-item" data-kt-menu-trigger="hover" data-kt-menu-placement="right-start">
<!--begin::Menu link-->
@foreach ($results as $result)

<span class="menu-title">{{ $result->symbol }}</span>

@endforeach
</div>
</div>
@endif
</div>
```

Here is link for image which is shown in my view,

https://imgur.com/a/K5YnP7Y


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi Jigar Patel

For the items in the top bar, please refer to the structure of other top bar items. Replicate it with an empty dropdown first, and then add your feature. This approach ensures consistency in the layout and functionality of the top bar items.

Thank you


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(