ProtoObjectObjectWAPresenterWAComponentWANavigation
| selection |
| instance | class |
|---|---|
| initialize query rendering selection | no messages
|
| selection |
|---|
| initialize |
|---|
| initialize |
selection _ WAStateHolder new |
| options |
^ #() |
| query |
|---|
| labelForOption: anObject |
^ anObject asString |
| rendering |
|---|
| renderContentOn: html |
html divClass: 'kalsey' with: [ html divClass: 'navigation-options' with: [self renderOptionsOn: html]. html divClass: 'navigation-content' with: [self renderSelectionOn: html]. ] |
| renderOptionsOn: html |
html unorderedList: self options selected: self selection callback: [:v | self select: v] labels: [:ea | self labelForOption: ea] |
| renderSelectionOn: html |
| selection |
|---|
| select: anObject |
selection contents: anObject. self selectionChanged |
| selection |
^ selection contents |
| selectionChanged |