Logic Machine Forum
Custom Trend iFrame - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Custom Trend iFrame (/showthread.php?tid=3636)



Custom Trend iFrame - sjfp - 21.10.2021

Hi All,
Would like to customize a trend vis that is part of an iFrame in the main visualization.
Would like to hide the following
Graph and Data buttons
Right and Left Navigation Buttons


RE: Custom Trend iFrame - admin - 22.10.2021

Add to Custom CSS:
Code:
.trends.view-frame .content .btn-group,
.trends.view-frame .btn-next,
.trends.view-frame .btn-prev {
  display: none;
}



RE: Custom Trend iFrame - sjfp - 22.10.2021

(22.10.2021, 06:48)admin Wrote: Add to Custom CSS:
Code:
.trends.view-frame .content .btn-group,
.trends.view-frame .btn-next,
.trends.view-frame .btn-prev {
  display: none;
}

Thanks Admin, that work great for iFrames for Trends generated on the local LM, but our central MQTT Broker LM is using the Direct Link address in the URL for the iFrame for each of our remote sites and to complicate thing a little further the iFrame is widget. So unfortunately the CSS does work.

Any other suggestion I would appreciate


RE: Custom Trend iFrame - admin - 22.10.2021

The same CSS should be placed on all LMs. You can try removing .view-frame from all CSS selectors and see if it changes anything.


RE: Custom Trend iFrame - sjfp - 22.10.2021

(22.10.2021, 08:25)admin Wrote: The same CSS should be placed on all LMs. You can try removing .view-frame from all CSS selectors and see if it changes anything.

Thank you again, appreciated.
Works by using adding the css in each remote LM