Row Alternation
Lukas Renggli
renggli at gmail.com
Tue Nov 18 08:41:52 MET 2008
#withIndexDo: is not portable to Smalltalk dialects other than
Squeak/Pharo (see Seaside coding guidelines).
Also this feature should be purely a thing in PRViewRenderer. I don't
think that should be stored in the document model.
Lukas
On Tue, Nov 18, 2008 at 7:59 AM, Damien Cassou <damien.cassou at gmail.com> wrote:
> On Tue, Nov 18, 2008 at 12:28 AM, David Farber <rdrvr.biz at gmail.com> wrote:
>> Here's a little change set I whipped up today. It annotates Table rows with
>> 'class=odd' or 'class=even' so that you can apply css to color alternate
>> rows. Comments, criticisms, etc., welcome.
>
> Part of your code reads:
>
> visitTableRow: anObject
> html tableRow
> class: (anObject rowAlternation isNil ifFalse: [ anObject rowAlternation ]);
> with: [ super visitTableRow: anObject ]
>
>
> class: (anObject rowAlternation isNil ifFalse: [ anObject rowAlternation ])
>
> seems to be equivalent to:
>
> class: anObject rowAlternation
>
> which seems wrong because you will add a nil class in some cases.
>
> What about:
>
> html tableRow
> class: anObject rowAlternation if: anObject rowAlternation notNil
>
>
> --
> Damien Cassou
> http://damiencassou.seasidehosting.st
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
>
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the smallwiki
mailing list