getStateImg FunctionRetrieves the path of the image file used to represent a given state. Syntaxpath = getStateImg(state); Parameters
ReturnsThe path of the image file is returned. RemarksRegardless of whether the image is the built-in state image, or a custom image set through the STATEIMG element, the returned path name includes the required path for TQS to display the image. The functions getLocState and getCurLocState can be used to retrieve the states of locations. ExamplesmyImgEl.src = getStateImg("DONE"); myImgEl.src = getStateImg(getCurLocState()); |