EasyUI Forum
May 04, 2024, 12:48:53 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Context menu  (Read 12063 times)
peter
Newbie
*
Posts: 10


View Profile
« on: April 18, 2012, 06:12:18 AM »

I have bound a context menu to the lines in a list, and the context menu appears.
How do I know which line in the list was being used when the user selected the menu?

Thanks

Peter
Logged
cmwalolo
Newbie
*
Posts: 5


View Profile Email
« Reply #1 on: April 19, 2012, 02:28:40 AM »

Code:
        this.menu.menu({
            onClick: function (item) {
                var action = item.href.substr(1);
                var mi = null;
                onclick(action, id, self.items[action]);
            }
        });
The Item  should give you the item that you created for the menu. item.href will be typically, the action behind the item.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!