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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk