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

Sidebar


How can i make the sidebar permanently collapsed and get the submenus in hover over the side bar menus in metronic 8.2.2v "react". please help i am design a dashboard for my customer.


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 (10)


Hi Vineet,

Thank you for reaching out to us.

To make the sidebar collapsed by default you can update the configuration file src/_metronic/layout/core/_LayoutConfig.ts.

Change minimize properties as shown below.

minimize: {
desktop: {
enabled: true,
default: true,
hoverable: true,
},
},


Run your app, clear the localStorage, and hard refresh your page to use the updated layout configuration.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



As for implementing hover-over submenus, you'll need to make some adjustments to the sidebar's styling and behavior. Typically, hover-over submenus are achieved through CSS and JavaScript. You can use CSS to hide the submenus by default and show them when the user hovers over the corresponding sidebar menu item. JavaScript can be used to handle the hover event and toggle the visibility of the submenus.



To collapse the sidebar permanently, you need to locate the component responsible for displaying the sidebar in the codebase. Look for a file or component that handles sidebar functionality and layout. In that component, soccer skills world cup will be able to find the logic related to collapsing and expanding the sidebar.



I recently tackled a similar issue and found Lauris' advice super handy. Tweaking the minimize settings in the _LayoutConfig.ts file as Lauris suggested should do the trick. Don't forget to clear your localStorage and give your page a hard refresh after making the changes. Also, for the hover-over submenus, integrating some custom CSS and JavaScript like McLaughlin mentioned could be a neat way to enhance the UX.
Regards,
James from PokeDoku



Discover the latest printed lawn shirt design at Roheenaz. Elevate your style with our stunning collection of printed lawn suits and dresses. Choose from a variety of trendy options to find the perfect printed lawn shirt design for you.



Discover trendy and stylish printed lawn suits at Roheenaz. Elevate your style with our collection of printed lawn suits and dresses. Choose from a variety of vibrant prints and designs that are sure to turn heads. Browse our collection now to find the perfect printed lawn shirt design for you.



For more granular control over sidebars and submenus, consider creating a custom bitlife React component that wraps Metronic's menu elements and implements the desired collapse and hover behavior.



Find the perfect lawn dress design at Mushq Pk. Explore our embroidered lawn collection and get the latest trends in lawn dresses.



CSS is suggested, but JavaScript seems to be preferred. Easily handles mouse hovers and display mode switching bob the robber



We are the most Trusted & Reliable GTA 5 Modding Store and we provide the best safest.
gta 5 modded accounts ps5


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  :(