Hiding Icons HUD - choosing which to hide
I use this to hide ALL icons etc on forms. I have tried to show only the PRINT icon by removing 'none' in the relevant line but regardless of refreshing the page or toggling the HUD Y/N the print icon remains hidden.
What am I missing here?
if HUD then
html("
<style>
.sideeditor-buttons-left .button{display: none;
height: 0px;}
.popupeditor2-buttons-left .button{display: none;}
.stringeditor .stringeditor-button2{display: none;}
.nx-backplane .popupeditor.pane .nx-button-text.blue{display: none;}
.tab.tab-icon{display: none;}
.hud-menu-right{display: none;}
.HudLeftHeader_root .nav-item.head.FastClickContainer_root{display: none;}
.nav-item.head.HudLeftHeader_backButton.FastClickContainer_root{display: block;}
.HudContainer_body{display: none;}
.hud-menu-button.menu-icon.menu-icon-trash{display: none;}
.hud-menu-button.menu-icon.menu-icon-duplicate{display: none;}
.hud-menu-button.menu-icon.menu-icon-add{display: none;}
.hud-menu-button.menu-icon.menu-icon-print{display:;}
.hud-menu-group, .hud-menu-right{display:none;}
.hud-menu-button.i-32-24.i-white.i-setting-tool.--ul-admin-button.admin-button{display:none;}
</style>
")
end
I also have another script which has the same issue.
if HUD then
html("
<style>
.hud-menu-button.menu-icon.menu-icon-trash{display: none;}
.hud-menu-button.menu-icon.menu-icon-duplicate{display: none;}
.hud-menu-button.menu-icon.menu-icon-add{display: none;}
.hud-menu-button.menu-icon.menu-icon-add{print: none;}
.hud-menu-group, .hud-menu-right{display:none;}
.hud-menu-button.i-32-24.i-white.i-setting-tool.--ul-admin-button.admin-button{display:none;}
</style>
")
end
changing this .hud-menu-button.menu-icon.menu-icon-add{print: none;} to
.hud-menu-button.menu-icon.menu-icon-add{print: ;} or deleting it entirely has no effect.
TIA
15 replies
-
Hi Alan,
If you are using this script in a Formula field, you can add that line conditionally.
html(" <style>" + if not Show then ".i-setting-print{display:none;}" end + " .i-setting-trash{display:none;} .i-setting-copy{display:none;} .i-setting-add{display:none;} </style> ")
"Show" is a "Yes / No" field. I'm not sure when Ninox changed the class names, but here's the full class name list... hud-menu-button.i-32-24.i-light-grey.i-setting-print.
I don't know if your second script was a typo, but you have .hud-menu-button.menu-icon.menu-icon-add{print: none;}. So you have the "add" line twice and in the second one you are using "print" as a property when it should be "display".
-
Thanks very much - will check it out
-
This works perfectly thanks!!
html(" <style>" + if not HUD then ".i-setting-print{display:none;}" end + " .i-setting-trash{display:none;} .i-setting-copy{display:none;} .i-setting-add{display:none;} </style> ")
-
Thanks for all tipps, if i use the code, the buttons are hidden, but if I click on the symbols for attachments, comments and history the buttons are shown again. How con I hide it also on these tabs?
-
HUD hiding users:
I'm unable to figure out how to hide the icons on the left hand side of the Ninox window.
Using your examples, I can hide the icons on the right as indicated below:
In addition I would like to hide the these icons on the left:
initial post in this topic does hide the icons in question but it also hides the
"sidebar" icon which I would like to leave visible.
Thanks for your advice!
Content aside
- Status Answered
-
1
Likes
- 7 mths agoLast active
- 15Replies
- 438Views
-
6
Following