Expand my Community achievements bar.

SOLVED

Table Component

Avatar

Former Community Member

How to add styles to the default table component

1 Accepted Solution

Avatar

Correct answer by
Level 10

More info - copy table component here: 

/libs/foundation/components/table

place under /apps/<yourproject>/components

Then open the code here: 

/apps/<yourproject>/components/table/table.jsp.

Add your style changes to the code. You can include a clientlibs too that contains a CSS. 

Make sure you change the title (the jcr:title prop of the table compoent under /apps) of the component too so you can easily see the new component. Name it something like NewTable

Hope this helps.. 

View solution in original post

2 Replies

Avatar

Level 10

Override the table component by placing it under /apps and changing the code. 

Avatar

Correct answer by
Level 10

More info - copy table component here: 

/libs/foundation/components/table

place under /apps/<yourproject>/components

Then open the code here: 

/apps/<yourproject>/components/table/table.jsp.

Add your style changes to the code. You can include a clientlibs too that contains a CSS. 

Make sure you change the title (the jcr:title prop of the table compoent under /apps) of the component too so you can easily see the new component. Name it something like NewTable

Hope this helps..