The following properties of the CMSMenu control can be set or used in the API:
All of the common properties from:
In addition, the following properties are available:
Property Name |
Description |
Sample Value |
Cursor |
Determines the mouse cursor used when controlling the menu. |
"Default" "Pointer" |
EnableMouseUpDownClass |
Indicates whether the menu should render different CSS classes for mouse-up and mouse-down events. |
|
EnableRTLBehaviour |
Indicates whether RTL should be enabled. |
|
EncodeMenuCaption |
Indicates whether the menu caption should be HTML encoded. |
|
ExternalScriptPath |
Path of the external .js file with skmMenu scripts. The default path is ~/cmsscripts/skmmenu.js. |
"~/myscripts/skmmenu.js" |
HighlightedMenuItem |
This property can be used to get the currently highlighted menu item and set its CSS classes. |
|
HighlightedNodePath |
Path of the item that should be highlighted as if it were selected. If you omit this value, the control automatically uses the current alias path from the aliaspath querystring parameter. |
"/products/PDAs" |
Layout |
Determines the layout of the menu (skmMenu). |
"Vertical" "Horizontal" |
MenuControl |
This property can be used to access the menu (skmMenu) control and its CSS classes and properties. |
|
Padding |
Padding of the CMSMenu table. |
|
RenderImageAlt |
Indicates whether the ALT attribute should be rendered for images used in the menu (for XHTML compatibility). |
|
RenderItemName |
Indicates if the ItemName attribute should be rendered. |
|
SeparatorCssClass |
CSS class of the separator cell (TD element) for the top menu level. |
|
SeparatorHeight |
Height of the separator placed between menu items of the top menu level. |
|
SeparatorText |
Text of the separator placed between menu items of the first menu level. |
"|" |
Spacing |
Spacing of the CMSMenu table. |
|
Method Name |
Description |
ReloadData(bool forceLoad) |
Reloads the data.
If the forceLoad parameter is set to false and a value is assigned to the DataSource property, the properties of the CMSMenu control are not used and only the data from the DataSource is loaded. |
Page url: http://devnet.kentico.com/docs/5_5r2/controls/index.html?cmsmenu_configuration.htm