cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to toggle "always on top" from javascript?

csnyder
1-Newbie

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!

1 ACCEPTED SOLUTION

Accepted Solutions
rabernathy
6-Contributor
(To:csnyder)

The correct syntax for "Always on top" is:

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

View solution in original post

2 REPLIES 2
rabernathy
6-Contributor
(To:csnyder)

The correct syntax for "Always on top" is:

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

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

Top Tags