[Seaside] Decoupling html representation from objects design
Avi Bryant
avi at beta4.com
Fri Mar 12 04:16:10 CET 2004
On Mar 11, 2004, at 6:14 PM, Sebastián Sastre wrote:
> Can you give me some advise to start with css from seaside?
- Any Component can have a #style method that returns a string of CSS
that will be applied to any page the component appears in.
- You can send the messages #cssClass: and #cssId: to HtmlRenderer;
these will apply a class or id to the next element that is rendered.
For example, with
html cssClass: 'foo'.
html table: [...]
the table element will have a "foo" class attribute.
- You can create divs and spans of a certain class or id easily using
#divClass:with:, #spanClass:with:, #divNamed:with:, and
#spanNamed:with: . For example:
html divClass: 'foo' with: [html form: [...]]
html spanNamed: 'bar' with: 'hello world'.
More information about the Seaside
mailing list