492
Views
4
Comments
Header row in table
Application Type
Traditional Web

I have several fields of data in a structure. I want to display these in a table.

I have made myself a table to style and display this data.

I want to be able to add a header row to this table to name by colums, and apply styles to these names. However I cannot find an option to do so.

It seems the basic OS Table only consists of tbody rows. Do Outsystems tables not support header rows?? Are they specific to 'Table Records' widgets?


Please, someone, tell me I'm wrong

2021-11-18 18-03-41
AJ.

Hello @MichaelR 

Are you referring to this Table widget? and that there is no 'Header' displayed in the widget tree?

If not please share a screenshot and/or more details on how you are creating your table, 

- AJ

UserImage.jpg
MichaelR

Yes, that widget.

I have simply dragged a table onto my page, with two columns and four rows.

The first column is hardcoded key names, the second column is populated from data in a local variable.

I want a header row that I can use my existing external styles with. In the HTML, all rows of this table are <tr> elements, inside the <tbody> element. I just want a row of the correct <thead> and <th> elements

2021-11-18 18-03-41
AJ.

You are correct about the tbody and thead elements. 

Unfortunately the widget only allows for Rows and Cells by design as documented here.


UserImage.jpg
MichaelR

Yes, I had seen that documentation page.  It's such a basic thing that I had hoped it was an unintentional omission from the page, rather than a missing feature from the widget itself.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.