I searched through all the code, but I simply do not found a way to
assign an block to an action. I can use some Symbol but that does not
help really. I than looked into Ilian and there I found:
column: 6 buildContents:[:e :item | e a text: 'Remove'; action: [self
you see, that is understandable. I have a link, I have an action I do
something in that action. Each line has it's own link which just deletes
or edits or whatever does to the object on this line.
so my approach seems to be sound. And still there's not way achieving
what I like?
On 06. 12. 2010 18:16, Friedrich Dominicus wrote:
> I searched through all the code, but I simply do not found a way to
> assign an block to an action. I can use some Symbol but that does not
> help really. I than looked into Ilian and there I found:
> column: 6 buildContents:[:e :item | e a text: 'Remove'; action: [self
> removeItem: item]];
Right way would be:
column: 6 addBlock: [:object |
e := WebElement new.
(e addNilLinkText: 'remove')
onClickDo: [object removeYourself];
column:addBlock:  must return a web element which will be added in
object removeYourself removes itself from a parent list, you can also
write in longer form:
I know this is not a fix in anyway. But I think it points in the righ
It seems we have to register kind of callbacks for the wished for
formatting of elements. During that I think I found another problem
^self year printString,
(self monthIndex < 10 ifTrue: ['0'] ifFalse: ['']), self monthIndex printString,
(self dayOfMonth < 10 ifTrue: ['0'] ifFalse: ['']), self dayOfMonth printString
"Date today printISOString "
It does not work neither with SpDate nor Date at least not on Pharo.
I propose to remove this function because it is wrong anyway....