[Seaside] Re: ModalBox
orichards at mail.ru
Sun Sep 30 09:14:24 UTC 2007
Lukas, i'm trying to incapsulate a modalbox JS library. You've
recommended me to use SUEffect as base class. What do you think about
taking something like Lightbox class as parent?
As for SUEffect. I've created a subclass and implemented a few
functions into it. Now i have a problem with a show method. I would
like to pass a rendering block to it. To do something like that:
html anchor onClick: ((SUModalBox on: self) show: [html heading:
'Hello World']); with: 'Show me hello in modal box'
But this doesn't works.
What's the problem? I've copied this (String stream.....) from
SUElement>>#render. But it doesn't works.
So here's my code:
self create; arguments: self arguments, (Array with:
(String streamContents: [ :stream | self render: aBlock on: stream ]))
More information about the seaside