fields.ini widget:atts

A place for users and developers of the Xataface to discuss and receive support.

fields.ini widget:atts

Postby 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
shardison
 
Posts: 24
Joined: Wed Aug 08, 2012 12:09 pm

Re: fields.ini widget:atts

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 0 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved