How can I disable or hide from users the context menu of the graphs allocated in my dashboard.
I just want to show the metrics, but when the user locates the pointer above the graph, it shows the menu with the option described.
Hi, any news? I’m interested about that. I think that’s important have an user really only-view the graph how I show him without possibility of any interaction, albeit minimal.
Here is a solution to hide the menue but it won’t disable it. So the user can still toggle through the view options or press ESC to show the menue again.
To just hide the menue you have to attach (1)&kiosk=tv or (2)&kiosk at end of your url. (1) will hide the menue bar on the left and just shows a small one on the top (2) completely hides all menues and you have to press ESC to go back
You can also hide it by using CSS margin-left to cut the menue bar out of the rendering iframe.
.dashboard-content > iframe {
width: 100%;
height: 1000px;
border: none;
margin-left: -92px;
}
A third option is to inject CSS directly into the iframe by using some Javascript.
Doing so you could use
.sidemenu {
display: none;
}
to hide it completely. But CORS (Cross Region Scripting) will prevent you from doing this for security reasons. So be aware that using this option will may cause some serious trouble.
@pixelpapst: This is not the solution which the folks are looking at. As far as I understand, the question is disabling the view, export options in the Panel window and not hiding the dashboard side menu.
Your proposed solution 1) kiosk mode Doesn’t stop the users from selecting the View, Share, More options available in the Graph Panel Menu window.
Ideally what many of us are looking for a solution is to at-least hide the Export option directly from the UI for user with Read permissions. [Panel Menu --> View, Share, More–Export CSV, JSON etc;]. It is fine if he/she can do so using Chrome dev tools but not from UI.
+1 I would prefer to get the inspect option removed as it makes it look too technical for a person with non-technical background having just view access.
+1 This is a problem in panels where a HTML navigations is provided for kiosk. Users touch on the HTML buttons and the VSM (view, share, more) bar comes up.
+1 : for viewers it should be possible to disable panel menu access.
From a user perspective it would also simply the rendering (feels like less options are available)