バージョン

ItemHovered プロパティ (DataMenuClientEvents)

ItemHovered クライアント イベントのハンドラーを定義します
シンタックス
'宣言
 
Public Property ItemHovered As String
public string ItemHovered {get; set;}
使用例
WebDataMenu1.ClientEvents.ItemHovered = "WebDataMenu1_ItemHovered"
WebDataMenu1.ClientEvents.ItemHovered = "WebDataMenu1_ItemHovered";
// The client event 'ItemHovered' takes two parameters sender and e
// sender  is the object which is raising the event
// e is the DataMenuItemCancelEventArgs
function WebDataMenu1_ItemHovered(sender, e) {

    //Gets the DataMenuItem object that is hovered
    var Item = e.getItem();
    
    //Gets the text of the hovered item
    var ItemText = Item.get_text();

    window.status = "Item '" + ItemText + "' hovered.";
    
}
参照