• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Image not showing in dashboard page1.html

    Dashboard Designer & Custom AngularJS Pages
    2
    2
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      v8dave
      last edited by

      I have used the following code in the Dashboard play area and it works but when I place this in the page1.html the images do not get found.

      <ma-get-point-value point-xid="DP_514615" point="motor1" realtime="realtime"></ma-get-point-value>
      
      <div layout="column">
          <div>
              <strong>Pump 1:</strong>
              <ma-switch-img point="motor1" ng-click="motor1.toggleValue()" src-false="img/ligthbulb_off.png" src-true="img/ligthbulb_on.png" default-src="img/close.png">
              </ma-switch-img>
          </div>
          <md-switch ng-model="motor1.valueFn" ng-model-options="{getterSetter:true}">
              Pump 1
          </md-switch>
      </div>
      
      1 Reply Last reply Reply Quote 0
      • Will GellerW
        Will Geller
        last edited by

        The reason those images are not found are those src paths are relative to the custom dashboard that is using page1.html while the the image actually exists in the /mdAdmin folder that contains the dashboard docs pages.

        So you would need to jump up one folder from your custom dashboard then into /mdAdmin to find those images. This worked for me:

        <ma-switch-img point="motor1" ng-click="motor1.toggleValue()" src-false="../mdAdmin/img/ligthbulb_off.png" src-true="../mdAdmin/img/ligthbulb_on.png" default-src="../mdAdmin/img/close.png">
        

        Infinite Automation - UI Developer

        1 Reply Last reply Reply Quote 0
        • First post
          Last post