15-Moonstone
July 3, 2018
Question
resize 3dimage widget / Javascript
- July 3, 2018
- 0 replies
- 709 views
07-03-2018 05:17 AM
Is it possible to change the width and height of 3DImage with the javascript code?
I tried in every way but in the end it does not change anything.
i used this code.
$scope.add=function() {
$scope.setWidgetProp("3DImage-1", "width", parseInt($scope.getWidgetProp("3DImage-1", "width")) + 1);
}
or
$scope.add=function() {
$scope.view.wdg["3DImage-1"].width += 1
}
but not working.
Thnx
Giuseppe
