Skip to main content
Jul 20, 2017 6:24 PM UTC
Solved

How to toggle "always on top" from javascript?

Hello,

I have a model item that I want to be on top for only a specific part of my sequence. How do I toggle this on and off using java script? Currently I am trying:  $scope.view.wdg['modelItem-1']['always on top'] = true; but this does not seem to be correct. Thank you!

Jul 21, 2017 4:18 PM UTC

The correct syntax for "Always on top" is:

$scope.view.wdg['modelItem-1']['decal'] = true;

2 replies

Jul 21, 2017 4:18 PM UTC

The correct syntax for "Always on top" is:

$scope.view.wdg['modelItem-1']['decal'] = true;

csnyderAuthor
Jul 21, 2017 4:21 PM UTC

Thank you! Is there a place where I can look up the javascript syntax for various fields?