Advertisement
Guest User

Untitled

a guest
May 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. var s7BasicZoomViewer = new s7viewers.BasicZoomViewer({
  2. containerId: 's7viewer-' + iterator,
  3. params: {
  4. asset: assetUrl,
  5. serverurl: serverUrl
  6. },
  7. handlers: {
  8. initComplete: function () {
  9. var zoomView = s7BasicZoomViewer.getComponent('zoomView')
  10.  
  11. // ive tried passing an object
  12. s7BasicZoomViewer.zoomView.component.zoomstep = { step: 3, limit: 5 } // doesnt work
  13.  
  14. // ive tried directly setting it on the "zoomView" just like the docs suggest
  15. zoomView.zoomstep = 2,5 // doesnt work
  16.  
  17. // ive also tried passing it as an object
  18. zoomView.zoomstep = { step: 3, limit: 5 } // doesnt work
  19. }
  20. }
  21. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement