Css class to Magrite generated component

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

Css class to Magrite generated component

HilaireFernandes
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

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