can i edit lightswitch screen (or element of it like custom control) to load my entire HTML page?

149 Views Asked by At

i want to load a HTML page to occupy the entire lightswitch screen

i tried this but i can't make the div to take the page (i tried to edit width and height of the custom control and of the div itself but this didn't work)

enter image description here

enter image description here

enter image description here

2

There are 2 best solutions below

2
BobbyJ On BEST ANSWER

Try adding the custom control to a group layout item and stretching both to fit the container,

0
Amr Rady On

i can make that using by editig the default style of lightswitch

element.innerHTML += '<div id ="mycontent" style="width:100%; height: 100%;"> </div>"';
document.getElementById("mycontent").innerHTML += 
'<object data="page.html" type="text/html" style="width: 100%; height: 100%;"></object>';

$("object").parent().parent().css("width", "100%");
$("object").parent().parent().css("height", "1200px");

//to eliminate the header if you want to
$("span").parent().parent().parent().parent().parent().css("width", "0px");
$("span").parent().parent().parent().parent().parent().css("height", "0px");

...