Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

How to hide action bar item when there is zero item/page selected?

Avatar

Level 4

Screenshot 2022-02-24 at 11.31.40 PM.png

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

The search term you should be looking for is "Render Condition". You can use them to enable/disable items in the rail based on many different conditions.

View solution in original post

5 Replies

Avatar

Community Advisor

Hi,

Is there any specification reason for hiding the nav bar?

 

but for answering your question, one of the approaches can be that you can try hiding the nav bar on load and on select event of item you can show the navbar.

This require javascript implementation.



Arun Patidar

Avatar

Level 4

as its showing off when zero page/item has selected , it has reported as a defect. so the ask is when selected  item/page is zero it should not show the action bar.

I had tried it to catch hold event of item but not exactly figured it out.

Avatar

Community Advisor

Yeah, this is a bug. Check with Adobe.



Arun Patidar

Avatar

Correct answer by
Employee Advisor

The search term you should be looking for is "Render Condition". You can use them to enable/disable items in the rail based on many different conditions.