How do I set css class for an html element with new canvas API?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I set css class for an html element with new canvas API?

Sophie424
Thanks.
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How do I set css class for an html element with new canvas API?

Damien Cassou-3
You can find those kind of thing directly in the code. Just browse the
examples or the TagBrush hierarchy.

For a div:

html div
   class: 'thisClass';
   with: [do something]


don't forget that #with: and #text: must be the last commands sent to
your tag.


Bye

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: How do I set css class for an html element with newcanvas API?

Sophie424
Great, thanks Damien.

----- Original Message -----
From: "Damien Cassou" <[hidden email]>
To: "The Squeak Enterprise Aubergines Server - general discussion."
<[hidden email]>
Sent: Sunday, July 30, 2006 11:36 PM
Subject: Re: [Seaside] How do I set css class for an html element with
newcanvas API?


> You can find those kind of thing directly in the code. Just browse the
> examples or the TagBrush hierarchy.
>
> For a div:
>
> html div
>   class: 'thisClass';
>   with: [do something]
>
>
> don't forget that #with: and #text: must be the last commands sent to your
> tag.
>
>
> Bye

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside