Skip to main content
1-Visitor
July 20, 2017
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!

12-Amethyst
July 21, 2017

The correct syntax for "Always on top" is:

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

2 replies

12-Amethyst
July 21, 2017

The correct syntax for "Always on top" is:

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

Translate
csnyder1-VisitorAuthor
1-Visitor
July 21, 2017

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

Translate