usmenu()


This article covers the usmenu() function as part of the UI Library.

The UI Library is a mixed bag of Javascript extensions for programming UI controls in USoft web pages. Do not confuse with the structured UDB object model for data exchange between USoft web pages and a Rules Engine.

The usmenu() function is a framework-independent function. It creates a framework-independent, horizontally oriented dropdown menu on the basis of an HTML structure consisting of (nested) UL and LI elements into a horizontally oriented dropdown menu:

Returns the HTML element containing the menu items.

The base HTML must have the following format:

<ul class="us-menu">
<li class="us-menuline"><a>Home</a></li>
<li class="us-menuline"><a>Companies</a></li>
<li class="us-menuline"><a>Customers</a>
<ul class="us-menu">
<li class="us-menuline"><a>New Customer...</a></li>
<li class="us-menuline"><a>Existing customers</a></li>
</ul>
</li>
<li class="us-menuline"><a>Log out</a></li>
</ul>

Syntax

.usmenu()

Example

$(".usmenu").usmenu();

 


0 replies

Be the first to reply!

Reply