where did the attributes css dataTable component?

UI Components for JSF
Post Reply
User avatar
townray
Posts: 37
Joined: 10 Dec 2009, 20:41

11 Dec 2009, 19:09

I'm trying to modify the position of the text of a column in a datatable but I can not find the attributes responsible for this such as: columnClasses, rowClasses, captionClass.

thanks
Danilo G. Magrini - Brazil
http://twitter.com/daniloMagrini
Mojarra 2.0.3 / Glassfish v3 / Primefaces 2.2RC1 / Netbeans 6.9

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 Dec 2009, 15:56

Hi,

In PrimeFaces we prefer using CSS selector mechanism instead of bloating components with *Style attributes. In datatable you can easily center the column texts with;

Code: Select all

.yui-skin-sam .yui-dt td {
    text-align: center;
}
Skinning guide from YUI site;

http://developer.yahoo.com/yui/examples ... nning.html

Hope this helps,

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests