|
Re: Generating a text and anchor in a list item with canvas API like #list:: msg#00128lang.smalltalk.squeak.seaside
On 11-Jan-06, at AM 01:29, Yar Hwee Boon wrote: Is there a way go generate lists with items that allows a block to control what is rendered for each item? For eg. Item 1 (delete), where "Item 1" and delete are 2 separate anchors? ie. with the old API: If there isn't, then something this does the trick: WAListTag>>do: aBlock super with: [list do: [:each | canvas listItem class: ((self isSelected: each) ifTrue: ['option-selected'] ifFalse: ['option']); with: [aBlock value: each]]] But there's some code duplication there with #with:. -- Hwee Boon http://motionobj.com/ MotionObj (65) 6764-9774 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Generating a text and anchor in a list item with canvas API like #list:do: used to: 00128, Yar Hwee Boon |
|---|---|
| Next by Date: | Re: new user curious about use of GLORP with Seaside on Squeak 3.8: 00128, Todd Blanchard |
| Previous by Thread: | Generating a text and anchor in a list item with canvas API like #list:do: used toi: 00128, Yar Hwee Boon |
| Next by Thread: | Seaside over SSL?: 00128, Timothy Reaves |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |