Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Repeating side navbar inner list elements #48

Closed
rajeshvarma848 opened this issue Oct 7, 2016 · 1 comment
Closed

Repeating side navbar inner list elements #48

rajeshvarma848 opened this issue Oct 7, 2016 · 1 comment

Comments

@rajeshvarma848
Copy link

side navbar inner elements are appearing in the background please suggest me to resolve this issue
capture

Thanks,
Rajesh

@juananinca
Copy link

I had the same problem. Just edit your _app-base.scss located in the assets/sass/ folder as I show you:

.nested-menu {
    .list-group-item {
        cursor: pointer;
    }
    .nested {
        list-style-type: none;
    }
    ul.submenu {
        height: 0;
    }
    & .expand {
        ul.submenu {
            list-style-type: none;
            height: auto;
            li {
                a {
                    color: #FFFFFF;
                    padding: 10px;
                    display: block;
                }
            }
        }
    }
  & .hidden {
    visibility: hidden;
  }
}

then you must edit each div menu in the typescript file sidebar.ts in the following way:

<div class="nested-menu">
            <a class="list-group-item" (click)="addExpandClass('pages')">
                <span><i class="fa fa-plus"></i> &nbsp; Menu</span>
            </a>
            <li class="nested" [ngClass]="{'expand' : showMenu === 'pages',  hidden: showMenu !== 'pages' }">
                <ul class="submenu">
                    <li>
                        <a href><span>Submenu</span></a>
                    </li>
                    <li>
                        <a href><span>Submenu</span></a>
                    </li>
                </ul>
            </li>
        </div>

And that's all! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants