(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    I've been trying to get the menu item in dynamic tree menu to stay highlighted when clicked on and directed to that page.

Return to Recent Questions


Q: I've been trying to get the menu item in dynamic tree menu to stay highlighted when clicked on and directed to that page.

A: Tree Menu doesn't save a pressed item as it saves a tree state.
It works within 1 page only and if you reload the page you should set a pressed item using Javascript API:

function apyt_ext_setPressedItem(menuInd, itemID)

<script type="text/javascript">

var i = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}


To expand specific items you should use the following function:
dtreet_ext_expandItem (dtreet_ext_getItemIDByIndex (0, 11), 1);





Return to Recent Questions

Related:
Bootstrap Slider Usage Bootstrap Progress bar Jquery  |  Bootstrap Label Input  |  Bootstrap Clearfix Style  |  Bootstrap Header Example  |  Bootstrap Sidebar Dropdown  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. Free AI Website Builder | Free AI Website Builder | AI Website Builder | AI Website Generator | Website Generator AI