| SlideMenu Basic Documentation for .NET
|
| |
|
OboutInc.SlideMenuBasic namespace
<%@ Register TagPrefix="osm" Namespace="OboutInc.SlideMenuBasic" Assembly="obout_SlideMenu3_Net" %>
Methods
AddParent
|
Adds a new Parent.
AddParent(id, [Text], [url], [urlTitle], [urlTarget])
- id - Item ID.
- Text - Text to display inside the item. Optional
- url - Url to open 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, [Text], [url], [urlTitle], [urlTarget])
- id - Item ID.
- Text - Text to display inside the item. Optional
- url - Url to open 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 - 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;
|
ScriptPath
|
Path to Slide Menu javascript file. Default value: "/slidemenu/smscript" Optional
osm.ScriptPath = "smscript/";
|
UrlTarget
|
Name of the target frame for each URL in the menu. Optional
osm.UrlTarget = "mainframe";
|
AutoQueryString
|
When true, SlideMenu will automatically add querystring with item id to every URL. Default value: true Optional
For example, in case of
osm.AddChild("c3", "some text", "myurl.aspx");
myurl.asp will become myurl.asp?sm=c3. This makes it easier to set SelectedId.
osm.AutoQueryString = true;
|
Width
|
Width of the menu in pixels. Optional
osm.Width = 200;
|
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
Parent p = new Parent();
p.Url = "http://www.obout.com";
|
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>
|
Text
|
Text to display inside Slide Menu Parent or Child. Optional
Parent p = new Parent();
p.InnerHtml = "Hello World!";
|
|
|
|
|
| "Superb support and great component suite!" |
Anton Beerens |
|
| |
|