creativetimofficial / ct-paper-kit-2-pro

Paper Kit 2 PRO is a premium Bootstrap 4 UI Kit with a huge number of components, sections and example pages.
https://www.creative-tim.com/product/paper-kit-2-pro
21 stars 6 forks source link

Multilevel menu #6

Closed groovemen closed 6 years ago

groovemen commented 6 years ago

If you want a multi-level dropdown menu, this is what you have to do:

Best, Stefan

screen shot 2018-02-26 at 15 22 07
krishna-7 commented 6 years ago

@groovemen : this is having conflict with the current code. First the drop down will be like : nav1

Then on clicking the sub menu item name the sub menu drop down moves to the right and it continues like the following. nav2 nav3 nav4

nav5

And the sub menus wont hide. Please make sure it doesn't have any conflict with the current code of paper kit 2 pro.

Cheers!

groovemen commented 6 years ago

Hello @krishna-7,

Please check again and make sure you have all the classes for the navbar from the Paper Kit, also create the dropdown with the sub-level like in the example above because it's working fine, you can see in the photo from the first comment and also in this video. Make sure you insert the JS code too. Greetings!

krishna-7 commented 6 years ago

Hi @groovemen,

If you don't mind can you share the entire code of the page that you have shown in the video, because I am still having issues with the multi-level navbar

Are there any changes in the .CSS files?

Also is this the same code that you have shown in the video because you have provided the following snippet : " Navbar" but in the demo in the nav bar it shows Paper Kit 2 Pro

As the js ready function was already in it I just placed the inner code into that in paper-kit.js as well (I tried it in both ways)

Please check this link : test_sub_menu

krishna-7 commented 6 years ago

Add the following code to paper-kit.css as well.

.nav-item.dropdown .dropdown-menu li.show .dropdown-menu.show{
  opacity: 1;
  visibility: visible;
}
groovemen commented 6 years ago

Hello again @krishna-7, sorry for the big delay, here are some changes that you have to make:



Hope this infos helps you!
All the best, Stefan