[Seaside] Suggested extension for WASelectTag

Philippe Marschall philippe.marschall at gmail.com
Mon Jul 3 16:23:42 UTC 2017


On Sat, Jul 1, 2017 at 7:24 AM, jtuchel at objektfabrik.de
<jtuchel at objektfabrik.de> wrote:
> ...
>
> Was this available already and did I overlook it?

Not that I know of.

> Does this sound reasonable? Worth adding to Seaside?

I have some issues with the API:
- Config is an abbreviation, we don't usually use abbreviations
- we don't usually use the Block suffix for methods that accept
blocks, e.g.. #callback: not #callbackBlock:, see also #titles:
(WAIframeTag >> #rootBlock is a bad example)

I don't really have a good proposal, maybe #optionRenderer: but the
renderer wouldn't render the whole option, only customize it.

As Paul has noted if you want full control you may be better off
rendering the the options yourself as done in
WAInputElementContainer>>#renderSingleSelectionCustomOn [1]

 [1] https://github.com/SeasideSt/Seaside/blob/master/repository/Seaside-Tests-Functional.package/WAInputElementContainer.class/instance/renderSingleSelectionCustomOn..st

Cheers
Philippe


More information about the seaside mailing list