I am having a problem with JSTree. I am using very basic examples but the <ins class="jstree-icon"> </ins> are floated all the way over to the right hand side of the tree area.
Here is the JS that fires it off:
$('#adminMenuArea').jstree({
"plugins" : ["html_data","ui","themes"]
});
Here is the HTML that I am using:
<div id="adminMenuArea">
<ul>
<li><a id='menu-4' href='menu-4'>About Us</a></li>
<li>
<a id='menu-6' href='menu-6'>Services</a><!-- in -->
<ul>
<li><a id='menu-7' href='menu-7'>Service 1</a></li>
<li><a id='menu-8' href='menu-8'>Service 2</a></li>
<li>
<a id='menu-9' href='menu-9'>Service 3</a><!-- in -->
<ul>
<li><a id='menu-18' href='menu-18'>Sub Services1</a></li>
<li><a id='menu-17' href='menu-17'>Sub Services 2</a></li>
</ul>
</li>
</ul>
</li>
<li><a id='menu-13' href='menu-13'>Employment</a></li>
<li><a id='menu-14' href='menu-14'>Contact Us</a></li>
</ul>
</div>
Any help is much appreciated.
The problem was that all of the anchor tags <a> were floating left due to some other CSS in my system.
Related
Below is the HTML code. Unable to click on the Login link at the navigation bar at the right hand side of the page .
<ul class="nav navbar-nav navbar-right">
<li class="online" data-toggle="modal" data-target="#loginPopup">
<a href="#">
<span class="glyphicon glyphicon-log-in">
</span> Login
<div class="ripple-container">
</div>
</a>
</li>
try
element(by.css('.glyphicon.glyphicon-log-in').click();
In the Laravel Backpack docs they show an image that appears to have dropdown menus for the sidebar navigation menu, but I can't find anywhere that says how to use them. Is there a built in way or do I have to write my own styles?
In resources/views/vendor/backpack/base/inc/sidebar.blade.php you can add your own menu-items. Using .treeview and .treeview-menu you can make those items expandable:
See also the source code of that image.
<li class="treeview">
<i class="fa fa-key"></i> <span>Roles & Permissions</span> <i class="fa fa-angle-left pull-right"></i>
<ul class="treeview-menu">
<li>
<span>Roles</span>
</li>
<li>
<span>Permissions</span>
</li>
</ul>
</li>
As Oscar Torres pointed out, the new demo source for a nested menu lives here.
Backpack now uses Bootstrap's nav-dropdown class(es) to achieve these results:
<li class="nav-item nav-dropdown">
<a class="nav-link nav-dropdown-toggle" href="#"><i class="nav-icon la la-group"></i> Authentication</a>
<ul class="nav-dropdown-items">
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('user') }}"><i class="nav-icon la la-user"></i> <span>Users</span></a></li>
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('role') }}"><i class="nav-icon la la-group"></i> <span>Roles</span></a></li>
<li class="nav-item"><a class="nav-link" href="{{ backpack_url('permission') }}"><i class="nav-icon la la-key"></i> <span>Permissions</span></a></li>
</ul>
</li>
the toggle in my bootstrap navbar used to work but now has stopped doing so and won't show the menu when I decrease the screen size. The code I used is:
</head>
<body>
<div class="container-fluid" id="wrapper">
<nav class="navbar navbar-default">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#defaultNavbar2" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span><span class="icon-bar"></span></button>
<img src="images/logo.png" id="navbarlogo"></div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="defaultNavbar2">
<ul class="nav navbar-nav">
<li class="active"></li>
<li></li>
<li class="dropdown">
<ul class="dropdown-menu">
<li>Kontakt</li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>Über uns</li>
<li>Services</li>
<li class="dropdown">Kontakt<span class="caret"></span>
<ul class="dropdown-menu">
<li>Adresse</li>
<li>Impressum</li>
</ul>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
Any ideas what's happened? Thanks!
I should start by checking that my support files are in place (css and js). navbar needs javascript in order to work properly.
I have a problem with creating a menu with typoscript.
This is how the menu should look in html
<div class="dropdown-menu hidden-xs" role="menu">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-4 col-sm-6">
<header>
Item lvl2
</header>
<ul>
<li>
Item lvl3
</li>
</ul>
</div>
</div>
</div>
</div>
And I have never worked with Typoscript.
Can you please tell me how to do it?
I am using jQuery Tabs in an asp mvc 2 application.
Previously my code worked in all browsers(i.e the tabs were working well):
<ul class="tab-menu">
<li><a href="<%= Url.Action("GetCoreTab", "ModalPopup") %>" class="a" title="Reservation Details"><b>
<div id="home" class="menu">
</div>
</b></a></li>
<li><a href="<%= Url.Action("GetDatesAndLocationTab", "Home") %>" class="a"><b>
<div id="dates-and-location" class="menu">
</div>
</b></a></li>
</ul>
Now I changed the list code (to a new requirement). And now the tabs do not work in IE 7 and 8.(i.e the views for all the tabs appear in the first tab)
Here is the modified code:
<ul class="tab-menu">
<li><a href="#GetCoreTab" class="a"><b>
<div id="home" class="menu">
</div>
</b></a></li>
<li><a href="#GetCustomerInformationTab" class="a"><b>
<div id="customer-information" class="menu">
</div>
</b></a></li>
</ul>
<div id="GetCoreTab">
<% Html.RenderPartial("Editors/Reservation/Tabs/TabCore"); %>
</div>
<div id="GetCustomerInformationTab">
<% Html.RenderPartial("Editors/Reservation/Tabs/TabCustomerInformation"); %>
</div>
Please do not tell me to use the previous version of the code since it is not possible. I just need to make the second version working in IE7 and 8, since it works well in Chrome and Firefox.
Thanks