Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
The layeredSlideMenu module constructs and controles slide in menu's. It expects the HTML to be constructed in the following way to work properly:
<ul id="mymenu"> <li> <span>1. listim</span> <ul> <li> <span>1.1. listitem</span> <ul> ...
webanizr.collect('layeredSlideMenu', parameters, callback)
The layeredSlideMenu module accepts the following parameters:
The HTML id of the menu to be constructed.
If this parameter is set, the module looks for <div class="..."> (where ... is the value given to class__navitems) instead of <li> for list items.
If this parameter is set, this module looks for <div class="..."> (where ... is the value given to class__submenu) instead of <ul> for submenu's.
The css class that is given to the submenu to make it active. If this parameter is omitted the css class "active" is used.
The callback is called after the menu is constructed. The callback receives no data from this module.
webanizr.send('layeredSlideMenu', data, parameters, callback)
The data is send unaltered to the callback function.
The layeredSlideMenu module accepts the following parameters:
The HTML id of the menu you want to manipulate.
The type of action you want to perform on the menu. The following options are supported:
The callback function is called after the action is performed. The data is send unaltered to this callback function.
The layeredSlideMenu maintains the following Webanizr variables:
Where <menuid> is the HTML id of a menu. The value of this variable is the number of opened menu's. The lowest value is 1, since the main menu is always opened. Every time a submenu is opened, this value increases. Every time the back action is called, the value decreases.
A demo of a layered slide in menu:
https://cdn.cpmodules.webanizr.com/demo/layer-slide-menu/index.html