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

Replace another context menu in the existing place #12

Open
rhka opened this issue Oct 16, 2014 · 2 comments
Open

Replace another context menu in the existing place #12

rhka opened this issue Oct 16, 2014 · 2 comments

Comments

@rhka
Copy link

rhka commented Oct 16, 2014

Hi,

We are trying to replace the existing context menu with a new context menu on a button click at the same postion. (parent context menu). We are not able to.

Condition: Position should be dynamic. We need to pass the location and it should not be hard coded.

Kindly let us know if there is any way to achieve this.

Thanks

@s-yadav
Copy link
Owner

s-yadav commented Oct 27, 2014

Hi rhka,
Sorry for late reply, been quite busy a while. Not exactly sure of your problem, but you can update top and left property before opening it to have dynamic postion.

$('.trigger).contextMenu('update','',{top:dynamicTop+'px',left:dynamicLeft+'px'});

Let me know if this works for you.

@s-yadav
Copy link
Owner

s-yadav commented Oct 31, 2014

This has not been implemented on the plugin at this time. I will check if
it can be a part of next version.

Thanks,
Sudhanshu Yadav

On Tue, Oct 28, 2014 at 5:29 PM, rhka [email protected] wrote:

Hi,

Thanks for your reply. We will give a try and let you know. One more
thing, is it possible to set an arrow dynamically based on the mouse click
(top, left, bottom, right)


Reply to this email directly or view it on GitHub
#12 (comment)
.

Regards,
Sudhanshu Yadav
+91 9590941390

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

2 participants