fields.ini widget:atts

Archived from the Xataface Users forum.

shardison — Fri Sep 07, 2012 4:53 pm

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


shannah — Sat Sep 08, 2012 10:46 am

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