Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context Menu Titles #769

Open
Andrewhuk47 opened this issue May 14, 2023 · 0 comments
Open

Context Menu Titles #769

Andrewhuk47 opened this issue May 14, 2023 · 0 comments

Comments

@Andrewhuk47
Copy link

I have the contextmenu setup so that when I right click a table row I am able to retrieve the id of the item in the current row and perform actions based on the menu selection and the row ID.

Is it possible to update the menu title as setup in the docs below with data from the row that context menu was displayed on.

https://swisnl.github.io/jQuery-contextMenu/demo/menu-title.html

I can pull that data using this

var currentRow=$(this).closest("tr");
var usrname= 'User: ' + currentRow.find("td:eq(3)").text();

However I cannot seem to inject this into the menu title.

Can you help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant