[Seaside] Css class to Magrite generated component
Hilaire
hilaire at drgeo.eu
Sun Feb 1 20:01:09 UTC 2015
Hello,
On fresh Magritte3 + Seaside 3.1.
Reading the archive point to what looks like obsolete way to do it.
(http://forum.world.st/Magritte-CSS-tt91775.html#a91776)
Using the #cssClass: message on a description get the class added to the
table cell containing the component:
descriptionStreets
<magritteDescription>
^ MAMemoDescription new
accessor: #streets;
label: 'Adresse ';
priority: 80;
beRequired ;
cssClass: 'address'
yourself.
RESULT in:
<th class="address required"><label
for="ajaxMATextAreaComponent985137152label">Adresse :</label></th><td
class="address required"><textarea rows="3" cols="auto"
id="ajaxMATextAreaComponent985137152label" name="2"></textarea>
How should it be done to get the class added to the generated component?
Thanks a lot
Hilaire
--
Dr. Geo - http://drgeo.eu
iStoa - http://istoa.drgeo.eu
More information about the seaside
mailing list