Actions
Activity #2472
closedFeature #3752: Design of the web framework for Data Centre Software
Feature #1850: Design and Development for web based ANRS
Module #1852: Development for HomePage
Sub module #2471: Development for menu listings
Modify UI for dynamic rendering of menus based on menu json
Start date:
04/11/2024
Due date:
04/15/2024
% Done:
100%
Estimated time:
Planned Due Date:
Updated by Thara S Pillai over 2 years ago
Read response json from middleware in client side variable menus
<ul>
<% menus.forEach(function(mainMenu) { %>
<li>
<a href="javascript: void(0);"class="has-arrow waves-effect">
<i class= "bx bx-menu"></i>
<span key="" ><%=mainMenu.menu_name %></span>
</a>
<% if (mainMenu.submenus && mainMenu.submenus.length > 0) { %>
<ul>
<% mainMenu.submenus.forEach(function(subMenu) { %>
<li>
<ul class="sub-menu" aria-expanded="true">
<li><a href="subMenu.menu_url" key=""><%=subMenu.menu_name %></a></li>
</ul>
<% if (subMenu.submenus && subMenu.submenus.length > 0) { %>
<ul>
<% subMenu.submenus.forEach(function(subSubMenu) { %>
<li>
<li><a href="subMenu.menu_url" key=""><%=subMenu.menu_name %></a></li>
</li>
<% }); %>
</ul>
<% } %>
</li>
<% }); %>
</ul>
<% } %>
</li>
<% }); %>
</ul>
Updated by Siji Mathew over 2 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 20
Updated by Thara S Pillai over 2 years ago
see updates in svn\varunamaalaa-web\controller\AuthController.js
Updated by Thara S Pillai over 2 years ago
Use res.locals.menu_json to assign values in the session variable to be available over multiple templates
Access in ejs as {menu_json}
Updated by Siji Mathew over 2 years ago
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100
Updated by Thara S Pillai about 2 years ago
- Status changed from Resolved to Closed
Actions