select the item in the navigation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #10045516
    abdullah
    Participant

    I transferred your html admin template in asp .net core mvc.

    When i click a menu item in the navigation, e.g. persons, i would like, to select this item inside the mvc controller, so the navigation will be expand also automatically.

    Can you help me, when i send you the mvc project ?

    Check this video: https://drive.google.com/file/d/1NYK-9vXm7ZlrS5pnl84zRdjwuJ6Lh3QE/view?usp=sharing

    thank you for your reply

    best regards
    abdullah


    #10045519
    Support
    Keymaster

    Hello, sorry but we’ve never worked with asp .net so unfortunatelly we can’t help you with questions related to that.

    What we can say is that this class is what makes that section expanded:

    Class “nav-active” on LI is the class that sets the item active too.


    #10045520
    abdullah
    Participant
    This reply has been marked as private.
    #10045523
    Support
    Keymaster

    Hello, if you want to add a style to the parent item you need to do this:

    <li class="active">
    	<a class="nav-link" href="link.html">
    		<i class="bx bx-loader-circle" aria-hidden="true"></i>
    		<span>My Menu</span>
    	</a>                        
    </li>

    (css/custom.css)

    ul.nav-main > li.active > a {
        background-color: #21262d;
    	color: #0099e6;
    }

Viewing 4 posts - 1 through 4 (of 4 total)

This topic is marked as "RESOLVED" and can not rceive new replies.