我正在尝试实现主菜单下拉菜单顺序,即用户选项卡到父菜单项子菜单时应该可以通过Tab键顺序看到。
我曾尝试使用Accessible-Mega-Menu但没有运气。无论如何都要实现这个或例子。
此处示例SEE DEMO
<div ng-controller="MyCtrl">
<div accessible-mega-menu="{
uuidPrefix: 'accessible-megamenu',
menuClass: 'nav-menu',
topNavItemClass: 'nav-item',
panelClass: 'sub-nav',
panelGroupClass: 'sub-menu',
hoverClass: 'hover',
focusClass: 'focus',
openClass: 'open'
}">
</div>
<ul class="nav-menu">
<li class="nav-item">
<a href="#">Item A</a>
</li>
<li class="nav-item">
<a href="#">Item B</a>
<ul class="sub-menu">
<li>
<a href="#">Item AAA</a>
</li>
<li>
<a href="#">Item BBB</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
答案 0 :(得分:0)
$form = $this->createForm('AppBundle\Form\FooAdminType', $res, array('attr' => array('fooOnes' => $Choices)));
//when $choices is my dql query
<强> DEMO 强>