[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

list

Widget Type #list
Widget iOS classMobileSelector
iOS categoryIOSWidgets
Widget Web classMobileSelector
web categoryWebWidget
Widget Android classMobileSelector, AndroidList
Properties selected
Events #needsTitle #needsContainer #needsItems #needsList #configureList:for: #setIconFor:in: #needsIconSourceFor:in: #needsCellFor:in: #configureCell:for:in: #selectionChanged #selected:
Sample use in spec
	 (#tasks -> (
            (#class -> #MobileSelector ),
            (#configuration -> (
              (#order -> 2), (#height -> 240),
              (#listeners -> (
                (#needsTitle -> ['Your Tasks'] ),
                (#needsItems -> [:coordinator | coordinator applicationModel tasks ] ),
                (#configureCell:for:in:coordinator: -> [:cell :item :aList :coordinator | coordinator configure: cell title: item taskType description: item description ]),
                (#needsIconSourceFor:in:coordinator: ->  [:item :aList :coordinator | | object | object := item object. object notNil ifTrue: [ coordinator iconSourceFor: object status group: (coordinator @ #tasks )]  ]),
                (#selected: -> [:item :coordinator | coordinator thread next: ((coordinator newTemplateAt: #TaskDetails) model: item;yourself)  ])
               ))
             ))
           )),