Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Search


I'm searching for the element https://preview.keenthemes.com/metronic8/demo1/documentation/general/search.html for the Metronic 8 - Vue version.

The Vue version has an option with search, but the example is not correct for me. You have to click first on the icon to open the search module.

I want the same example for Vue on: https://preview.keenthemes.com/metronic8/demo1/documentation/general/search.html (Basic Layout Example).

Can you provide me the correct code?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


@suika game Thx. I got it.



Hi,

In Vue, we have the same ts component src/assets/ts/components/SearchComponent.ts, names of the attributes and functionality should be the same as described in the doc of HTML version.

Add attributes described in our doc and then initialize SearchComponent.


import { SearchComponent } from "@/assets/ts/components";

setup() {
onMounted(() => {
nextTick(() => {
SearchComponent.reinitialization();
});
});
},


We are planning to add a separate doc for the ts component in upcoming releases.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(