Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. "click on a button, do something to an object value and display a result"
  2. html div
  3. class: 'validate';
  4. with: [
  5. "( html button )
  6. bePush;
  7. class: 'incrementButton';
  8. onClick: (
  9. ( html jQuery id: 'thisIsMyDiv' ) load
  10. html: [ :canvas | self counter increment. self renderMyCounterOn: canvas ]
  11. );"
  12. with: 'Increment Count'
  13. ].
  14.  
  15. html horizontalRule.
  16.  
  17. html div
  18. id: 'thisIsMyDiv';
  19. with: [
  20. self renderMyCounterOn: html.
  21. ].
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement