The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
Is there any way to set the class of a 2d container using javascript? Whenever I try to set the class using the following line of code:
$scope.app.view.Home.wdg["panel-2"]).class = "my-class";
I get an object undefined error.
Solved! Go to Solution.
Not sure if this will work but try the "other" method of setting widget properties.
$scope.setWidgetProp(StudioID, Property, Value)
so for your example
$scope.setWidgetProp('panel-2', 'class', 'my-class')
Not sure if this will work but try the "other" method of setting widget properties.
$scope.setWidgetProp(StudioID, Property, Value)
so for your example
$scope.setWidgetProp('panel-2', 'class', 'my-class')
Yep that worked thank you!