Page 1 of 1

fields.ini widget:atts

PostPosted: Fri Sep 07, 2012 4:53 pm
by shardison
I used the following directives in my fields.ini file

[comment]
visibility:list = "hidden"
visibility:find = "hidden"
widget:atts:style = "color: #f00;"


The visibility directives work as they should
but the style directive only works in "edit" not in "view". In other words my [comment] field is red in "edit" forms but not in "view" format. I really want the red font in my "view" format. Does anyone have any ideas or suggestions?

Seth

Re: fields.ini widget:atts

PostPosted: Sat Sep 08, 2012 10:46 am
by shannah
Implement the xxx__htmlValue() method for the field in the delegate class. This will allow you to wrap and style the value as it is displayed in the view tab.

=Steve