123456789101112131415161718192021222324252627282930313233 |
- Smalltalk current createPackage: 'Trapped-Demo' properties: #{}!
- TrappedPlainModel subclass: #App
- instanceVariableNames: ''
- package: 'Trapped-Demo'!
- !App methodsFor: 'initialization'!
- initialize
- super initialize.
- self payload: #{'items'->#('hello' 'world'). 'title' -> 'To-Do List'}
- ! !
- Widget subclass: #AppView
- instanceVariableNames: ''
- package: 'Trapped-Demo'!
- !AppView methodsFor: 'rendering'!
- renderOn: html
- html h2 trapShow: #('title').
- html p trapShow: #('items')
- ! !
- Widget subclass: #NameView
- instanceVariableNames: ''
- package: 'Trapped-Demo'!
- !NameView methodsFor: 'rendering'!
- renderOn: html
- html root trapShow: #()
- ! !
|