Facility Control

 View Only
  • 1.  hidden picture

    Posted 11-27-2017 13:56
    Hi guys,
    Is it possible to hide or show a picture in dashboard by script please ?
    Something like :

    ogscript.setStyle('pic1' , 'visibility:hidden;')
    ogscript.setStyle('pic1' , 'visibility:visible;')

    Many thanks


  • 2.  RE: hidden picture

    Posted 11-28-2017 14:02
    You can hide/show any element within an tag so, if your picture is its own element (like the background of an , an tag, or the background of a ), you can very easily hide/show it. You can also remove the background image from a component with the style attribute "bgremove:none" - so calling ogscript.setStyle('pic1' , 'bgremove:none;') would hide it and ogscript.setStyle('pic1' , 'bg-u:IMAGE_NAME.PNG;') would show it.
    #DashBoard


  • 3.  RE: hidden picture

    Posted 11-29-2017 11:23
    Hi James,
    TY for your answer.

    I find this too :

    ogscript.hide('pic1');
    ogscript.reveal('pic1');


    ++
    #DashBoard


  • 4.  RE: hidden picture

    Posted 11-29-2017 15:09
    Yes, that will work as long as pic1 is inside of an tag.
    #DashBoard