Helper method that creates a RightClickMenuItem.
Namespace:
EPiServer.Web.PageExtensionsAssembly: EPiServer (in EPiServer.dll) Version: 5.2.375.236
Syntax
| C# |
|---|
public RightClickMenuItem CreateMenuItem( string caption, string url, string javaScript, string active, string imageUrl, RightClickMode mode ) |
Parameters
- caption
- Type: System..::.String
- url
- Type: System..::.String
- javaScript
- Type: System..::.String
- active
- Type: System..::.String
- imageUrl
- Type: System..::.String
- mode
- Type: EPiServer..::.RightClickMode
Return Value
An initialized RightClickMenuItem object.
Remarks
The reason for using this method rather than creating a new RightClickMenuItem is that this helper method
automatically handles path to the image (imageUrl) via the ImagePath property.