WANavigation


Seaside-Components-Frames

Comment:



Hierarchy:

ProtoObject
Object
WAPresenter
WAComponent
WANavigation

Summary:

instance variables:

selection

methods:

instance class
initialize query rendering selection no messages

Detail:

instance variables:

selection

instance methods:

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
	

class methods:

^top


- made by Dandelion -