In pa:tabmenu I cannot figure out how menu items get assigned class="active-menuitem". There does not seem to be any rhyme or reason on which menu items are highlighted by default. I see once I click a menu option the active-menuitem class gets assigned but nothing about defaulting or allowing us to assign what menu item is active.
Is there some way to control this?
Clear all active menu items?
Question: How to assign active-menuitem
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think you can use atlantis_expandeditems cookie.
To add an item; PF('menuWidget').addMenuitem(id)
To clear all item; PF('menuWidget').clearMenuState();
To add an item; PF('menuWidget').addMenuitem(id)
To clear all item; PF('menuWidget').clearMenuState();
Github Profile: https://github.com/mertsincan
So clearMenuState clears the cookie of the state of expanded items etc but does not clear the "active-item" style from the menu.
What I want is a widget function like menu.clearActiveState() which for a menu walks its children and performs a item.removeClass('active-menuitem');
What I want is a widget function like menu.clearActiveState() which for a menu walks its children and performs a item.removeClass('active-menuitem');
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Added clearActiveItems method to next release for pa:menu.
Github Profile: https://github.com/mertsincan
Thank you!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome!
Github Profile: https://github.com/mertsincan
Do you mean in the main PrimeFaces documentation or the Atlantis documentation?
These look like Atlantis Specific widget methods for the layout so I assume you mean there?
These look like Atlantis Specific widget methods for the layout so I assume you mean there?
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests