ASP.NET Slide Menu Documentation - Advanced Properties
Methods .NET only
| Name |
Description |
AddParentAt
|
Adds a new Parent after the item with ID atId.
AddParentAt(id, atId, innerHtml, url, onClientClick, urlTitle, [urlTarget])
- id - Item ID.
- atId - Item ID after which to add this Parent.
- innerHtml - Text or HTML to display inside the item.
- url - Url to open when item is clicked.
- onClientClick - javascript code to execute when item is clicked.
- urlTitle - title for the URL.
- urlTarget - target where to open the URL.
osm.AddParentAt("prod", "services", "Our Products", null, null, null);
|
AddChildAt
|
Adds a new Child after the item with ID atId.
AddChildAt(id, atId, innerHtml, url, onClientClick, urlTitle, [urlTarget])
- id - Item ID.
- atId - Item ID after which to add this parent.
- innerHtml - Text or HTML to display inside the item.
- url - Url to open when item is clicked.
- onClientClick - javascript code to execute when item is clicked.
- urlTitle - title for the URL.
- urlTarget - target where to open the URL.
osm.AddChildAt("comp", "products", "Computers", "products.aspx", null, null);
|
| Name |
Description |
ScriptPath
|
Path to Slide Menu javascript file. Default value: "/slidemenu/smscript" Optional
osm.ScriptPath = "smscript/";
|
XmlPath
|
Path to Slide Menu XML file. Menu will first be loaded from XML file, then as Parents and Children are added in code. Optional
osm.XmlPath = "smxml.xml";
|
AutoQueryString
|
When true, menu will automatically add query string ?sm=[item_id] to every URL added to menu. Optional
osm.AutoQueryString = true;
Note: Use this to easily get the SelectedId. For example, osm.SelectedId = Request.QueryString["sm"];
|
AutoPostBack
|
When true, menu will automatically do postback when child item is clicked. Optional
osm.AutoPostBack = true;
Note: Default value of AutoPostback is true
|
MinimumChildrenHeight
|
Minimum height for each children box. Optional
osm.MinimumChildrenHeight = 50;
|
ImageLongDescription
|
URL for the long description of menu images. Optional
osm.ImageLongDescription = "longdesc.html";
|
Properties - styles
When StyleFolder is set, these properties are ignored
| Name |
Description |
CSSParent
|
CSS class for Parents. Optional
osm.CSSParent = "smParent";
|
CSSParentOver
|
CSS class for Parents with cursor over. Optional
osm.CSSParentOver = "smParentOver";
|
CSSParentSelected
|
CSS class for Parents when selected. Optional
osm.CSSParentSelected = "smParentSelected";
|
CSSChild
|
CSS class for Children. Optional
osm.CSSChild = "smChild";
|
CSSChildOver
|
CSS class for Children with cursor over. Optional
osm.CSSChildOver = "smChildOver";
|
CSSChildSelected
|
CSS class for Children when selected. Optional
osm.CSSChildSelected = "smChildSelected";
|
CSSMenu
|
CSS class for the DIV holding the whole menu. Optional
osm.CSSMenu = "smMenu";
|
CSSChildrenBox
|
CSS class for a children box which holds all children for each parent. Optional
osm.CSSChildrenBox = "smChildrenBox";
|
CSSPath
|
Path to the CSS file. Optional
osm.CSSPath = "/slidemenu/styles/xp_blue.css";
|
Slide Menu Properties - images
When StyleFolder is set, these properties are ignored
| Name |
Description |
ImageParent
|
Parent image. Optional
osm.ImageParent = "/slidemenu/images/arrow_blue.gif";
|
ImageParentOver
|
Parent image with cursor over. Optional
osm.ImageParentOver = "/slidemenu/images/arrow_red.gif";
|
ImageParentSelected
|
Parent image when selected. Optional
osm.ImageParentSelected = "/slidemenu/images/arrow_blue.gif";
|
ImageChild
|
Child image. Optional
osm.ImageChild = "/slidemenu/images/arrow_blue.gif";
|
ImageChildOver
|
Child image with cursor over. Optional
osm.ImageChildOver = "/slidemenu/images/arrow_red.gif";
|
ImageChildSelected
|
Child image when selected. Optional
osm.ImageChildSelected = "/slidemenu/images/arrow_blue.gif";
|
CSSImageParent
|
CSS class for Parent image. Optional
osm.CSSImageParent = "smImageParent";
|
CSSImageChild
|
CSS class for Child image. Optional
osm.CSSImageChild = "smImageChild";
|