cDropNav.ftl
1 <#-- cDropNav -->
2 <#-- Params
3 - title : Title shown over the banner
4 - logoImg : Default: Empty string, show logo instead of text title, title is set as title html attribute for the logo image.
5 - hasMenu : Default: true;
6 Nested content : Shows default page menu, but can other item can be add using @mainNavItem macro.
7 -->
8 <#macro cDropNav title icon='' caret='' expanded=false id='' class='' params='' deprecated...>
9 <@deprecatedWarning args=deprecated />
10 <#local cId='id-' + random()>
11 <#if id !=''><#local cId=id /></#if>
12 <div class="dropdown-group" <#if class !='' > ${class!}</#if>"<#if params!=''> ${params}</#if>>
13 <button type="button" class="nav-link dropdown-toggle" href="#" id="dropdownMenu${cId!}" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="${expanded?c}">
14 ${icon!} ${title!} ${caret!}
15 </button>
16 <ul class="dropdown-menu" aria-labelledby="dropdownMenu${cId!}">
17 <div class="dropdown-content">
18 <#nested>
19 </div>
20 </ul>
21 </div>
22 </#macro>