Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
jerrysvensson
Partner - Specialist II
Partner - Specialist II

Is it possible to hide/remove menu items on right click menu?

Hi

I would like to write an document extension that removes some of the menu items on the right click menu.

For instance Clear all selections.

Is it possible?

I have read the articles on building your own extension object, but I haven't found on how to alter the right click menu.

1 Solution

Accepted Solutions
Brian_Munz
Employee
Employee

The easiest way is to use a tool like the Firebug extension (or just plain Firebug if you're running on QVS).

Re: Firebug extension

Then you can click the inspect button:

inspect.png

And click on the right menu item you're looking to hide (in this example New Sheet Object) and you'll see the HTML show up in firebug.  You can then see the class you're looking for:

class.png

View solution in original post

5 Replies
Brian_Munz
Employee
Employee

There's a doc extension that can do this.  You need to determine the CSS classes of the items you want to remove, but once you do, you can tell the extension to hide all elements with that CSS class.  It's not too difficult.

http://community.qlik.com/docs/DOC-4236

jerrysvensson
Partner - Specialist II
Partner - Specialist II
Author

Hi

We use HideIt and it works very well.

The problem I have is " You need to determine the CSS classes", how do I determine which classes? 🙂

Brian_Munz
Employee
Employee

The easiest way is to use a tool like the Firebug extension (or just plain Firebug if you're running on QVS).

Re: Firebug extension

Then you can click the inspect button:

inspect.png

And click on the right menu item you're looking to hide (in this example New Sheet Object) and you'll see the HTML show up in firebug.  You can then see the class you're looking for:

class.png

jerrysvensson
Partner - Specialist II
Partner - Specialist II
Author

Ah, thanks a lot.

I am a former C/C# coder, but I haven't done any javascript.

Not applicable

Hi Jerry, did you succeed ? I try to do the same thing  but I don't succeed