_getFooterMenu
How to Use _getFooterMenu
Method
_getFooterMenu
method is designed to retrieve the footer menu of the application. Like the header menu method, it optimizes performance by using caching and local storage, minimizing the need for repeated API calls. This method is ideal for loading the footer navigation menu, which is commonly accessed across different pages of the application.Usage Steps:
1.
2.
callback
function is passed as a parameter. This function will be executed once the footer menu is retrieved. The retrieved menu data will be passed as an argument to this function.3.
Example:
handleFooterMenu
function will be executed once the footer menu is retrieved, allowing you to process and display the menu data as needed.Common Use Cases:
1.
2.
3.
Notes:
_cache_footer_menu
) and in local storage to improve performance. If the cache is available, it will be used instead of making an API call.