Author Topic: contextmenu listener is action  (Read 1268 times)

arbyter

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
contextmenu listener is action
« on: December 17, 2019, 04:09:16 pm »
hi
tried to implement pq-contextmenu following the api docu.
from api:>>  $( selector ).pqGrid( { contextMenu: {on: true, items: [{
            name: 'Undo',
            listener: function(evt, ui, item){
                this.History().undo();
            }
        },        ...    ]} } );
didnt work, then i mistrusted the naming "listener". Changed to "action", then it works.



paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5240
    • View Profile
Re: contextmenu listener is action
« Reply #1 on: December 17, 2019, 09:14:37 pm »
[ Only Pro members may read this post. ]

arbyter

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: contextmenu listener is action
« Reply #2 on: December 18, 2019, 02:49:31 pm »
i did, but your example code from api-doc is the snippet, i used in my post.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 5240
    • View Profile
Re: contextmenu listener is action
« Reply #3 on: December 18, 2019, 03:02:34 pm »
[ Only Pro members may read this post. ]