mvan231

Scriptable Widget Stacks Example

Nov 10th, 2021
1,170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let w = new ListWidget()
  2.  
  3. let st1 = w.addStack()
  4.  
  5. let st2 = w.addStack()
  6.  
  7.  
  8.  
  9. st1.addText("this is a text")
  10.  
  11. st2.addText(new Date().toLocaleDateString())
  12.  
  13. st1.borderColor=Color.red()
  14. st2.borderColor=Color.blue()
  15. st1.borderWidth=2
  16. st2.borderWidth=3
  17.  
  18. Script.setWidget(w)
  19. Script.complete()
  20. w.presentMedium()
Advertisement
Add Comment
Please, Sign In to add comment