The Tab element can contain the following attributes:
id (text). Unique identifier within xml file.
text (text). Text displayed by the tab. Can contain a resource string with the following format: {ResourceName:ResourceKey}.
order (int). Weight, which determines the location of the tab.
imageUrl (text). Relative image path for the tab.
enableHandler (text). Fully qualified class name for the tab EnableHandler (if EnableHandler returns false, the tab is not displayed in the left menu). The class must implement the ICommandEnableHandler interface.
permissions (text). Parameter passed as a CommandParameter value to the EnableHandler.
The following example shows how to retrieve permissions in the EnableHandler class:
public bool IsEnable(object sender, object element)
{
var commandParams = element as CommandParameters;
if (commandParams != null)
{
string permissions = commandParams.CommandArguments["permissions"];
}
}
The Link element can contain the following attributes:
id (text). Unique identifier within XML file.
text (text). Text displayed by the element. It can contain a resource string with the following format: {ResourceName:ResourceKey}.
order (int). Weight, which determines the location of the element.
imageUrl (text). Relative image path for the element.
enableHandler (text). Fully qualified class name for the element EnableHandler (if EnableHandler returns false, the element is not displayed in the left menu). The class must implement the ICommandEnableHandler interface.
iconCss (text). Css class for the menu image.
Do you find this information helpful? Please log in to provide feedback.