Adds a menu item to the collection
Namespace:
NetQuarry.WebControls
Assembly:
EAP.WebControls (in EAP.WebControls.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public DivMenuItem AddItem(
string commandName,
string text,
string toolTip,
string onClickJS,
string URL,
string imageURL,
DivMenu submenu,
UICommandAttrs flags,
string confirmMessage,
Object param
)
Public Function AddItem (
commandName As String,
text As String,
toolTip As String,
onClickJS As String,
URL As String,
imageURL As String,
submenu As DivMenu,
flags As UICommandAttrs,
confirmMessage As String,
param As Object
) As DivMenuItem
Parameters
- commandName
- Type: SystemString
The command name to invoke if a post-back is performed due to a user click on the item. - text
- Type: SystemString
The menu item text. - toolTip
- Type: SystemString
The menu item tooltip. - onClickJS
- Type: SystemString
The client-side javascript, if any. - URL
- Type: SystemString
The URL to which to navigate, if any. - imageURL
- Type: SystemString
The optional image URL to a 16x16 image. - submenu
- Type: NetQuarry.WebControlsDivMenu
The cascading submenu to present when user clicks on this menu item, if any. - flags
- Type: NetQuarryUICommandAttrs
Flags specifying how the menu item is to be formed. - confirmMessage
- Type: SystemString
The optional confirmation message to be presented when the user clicks on the menu item and before executing the item. - param
- Type: SystemObject
Provided for future use.
Return Value
Type:
DivMenuItemThe newly created menu item appropriately populated.
See Also