Shrinking of Navigation Menu on page load

Introduction

This post defines the steps required to shrink the navigation menu on page load.

Challenges faced: 

In Oracle Apex 5, universal theme the navigation menu is strengthening on default page load. If we want to shrink the menu, we need to click on the navigation menu controller.

Steps to follow

Step 1 :Created a dynamic action with event as page load and condition as

JavaScript Expression and set value as

$(‘#t_Button_navControl’).attr(‘aria-expanded’) === “true”.

 

Step 2 :A true action is provided with JavaScript code as

$(‘#t_Button_navControl’).click();

 

Call To Action:

For Oracle apex development and customization please do visit our company website https://doyensys.com/

 

Conclusion:

Using above method, you can easily shrink the navigation menu on page load.

Recent Posts