The menu can be bound to virtually any static or dynamic data source.
The menu offers two ways to handle user selections: specifying a command on each menu item and using the ItemClicked event. Unlike the ItemClicked event, the client-side commands are objects that implement two methods:
executeCommand(param): A method that executes the command.
canExecuteCommand(param): A method that returns a Boolean value specifying whether or not the command can be executed. If the return value is false, the menu item is disabled automatically.