[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Iliad: how to assign a css class to a div? A proposal
From: |
Bèrto ëd Sèra |
Subject: |
[Help-smalltalk] Iliad: how to assign a css class to a div? A proposal |
Date: |
Wed, 29 Jul 2009 14:44:25 +0300 |
HI again!
One of the things that make designers *really* independent is the
possibility to assign css rules to a given part of the screen. Since
we have clearly identifiable widgets, this should be even handier in
Iliad.
Now, class="_widget" is set here:
buildContents [
"Do *not* override this method. Use #contents instead"
<category: 'building'>
^self newRootElement div
id: self id;
class: '_widget';
build: decorator contents;
yourself
]
I would rather not modify this much, and simply add a cssClass method like:
cssClass [
"Override this method to assign a particular css class to your widgets"
<category: 'building'>
^'_widget'.
]
buildContents [
"Do *not* override this method. Use #contents instead"
<category: 'building'>
^self newRootElement div
id: self id;
class: self cssClass;
build: decorator contents;
yourself
]
Would this suit everybody?
Berto
--
==============================
Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement
viole les droits du peuple, l'insurrection est, pour le peuple et pour
chaque portion du peuple, le plus sacré des droits et le plus
indispensable des devoirs.
- [Help-smalltalk] Iliad: how to assign a css class to a div? A proposal,
Bèrto ëd Sèra <=