| SlideMenu Documentation for .NET
|
| |
|
OboutInc.SlideMenu namespace
<%@ Register TagPrefix="osm" Namespace="OboutInc.SlideMenu" Assembly="obout_SlideMenu3_Pro_Net" %>
Methods
AddParent
|
Adds a new Parent.
AddParent(id, [innerHtml], [url], [onClientClick], [urlTitle], [urlTarget])
- id - Item ID.
- innerHtml - Text or HTML to display inside the item. Optional
- url - Url to open when item is clicked. Optional
- onClientClick - javascript code to execute when item is clicked. Optional
- urlTitle - title for the URL. Optional
- urlTarget - target frame or window name for URL. Optional
osm.AddParent("prod", "Our Products");
|
AddChild
|
Adds a new Child.
AddChild(id, [innerHtml], [url], [onClientClick], [urlTitle], [urlTarget])
- id - Item ID.
- innerHtml - Text or HTML to display inside the item. Optional
- url - Url to open when item is clicked. Optional
- onClientClick - javascript code to execute when item is clicked. Optional
- urlTitle - title for the URL. Optional
- urlTarget - target frame or window name for URL. Optional
osm.AddChild("comp", "Computers", "http://www.company.com/products.aspx");
|
|
|
|
|
Properties - styles
StyleFolder
|
Path to the folder with style to use. Optional
osm.StyleFolder = "/slidemenu/styles/xp_blue";
|
|
|
|
|
Properties - behavior
SelectedId
|
ID of Slide Menu Parent or Child which will be selected on load. Optional
osm.SelectedId = "prod";
|
Speed
|
Speed with which Slide Menu expands and collapses. Default value: 10. Optional
osm.Speed = 20;
|
KeepExpanded
|
When true, Slide Menu will not collapse an open Parent when another Parent is clicked. Default value: false. Optional
osm.KeepExpanded = true;
|
UrlTarget
|
Name of the target frame for each URL in the menu. Optional
osm.UrlTarget = "mainframe";
|
Height
|
Height for each children box. Default value is 100. Optional
osm.Height = 150;
Note: For dynamic height, set height = -1
|
|
|
|
|
Parent and Child properties
Url
|
URL for Slide Menu Parent or Child. Optional
<osm:Parent Id="p1" Url="http://www.obout.com">Obout inc</osm:Parent>
|
UrlTarget
|
URL target for this item's URL. Optional
<osm:Parent Id="p1" Url="http://www.obout.com" UrlTarget="_blank">
Obout inc
</osm:Parent>
|
UrlTitle
|
Title for the URL. Optional
<osm:Parent Id="p1" Url="http://www.obout.com" UrlTitle="our homepage">
Obout inc
</osm:Parent>
|
InnerHtml
|
Text or HTML to display inside Slide Menu Parent or Child. Optional
<osm:Parent Id="p1" InnerHtml="Hello world" />
|
OnClientClick
|
JavaScript code to execute when user clicks on this Parent or Child. Optional
<osm:Parent Id="p1" OnClientClick="alert('Hello world');">Obout inc</osm:Parent>
|
|
|
|
|
| "Thank you very very much, I have to say your support is the best." |
Guido Helmers |
|
| |
|