| |
| SlideMenu Advanced Properties
|
Use these properties to further customize your menu.
| | |
Methods .NET only
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);
|
|
|
|
|
Properties - behavior
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
SlideMenu Properties - images When StyleFolder is set, these properties are ignored
| "The flyout does work great.
You have some pretty nifty components I cannot live without.
Thank you again very much for your support and timely responses." |
Jennifer |
|
| | |
|
|
|
|