Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Steve Dalgleish
94
Views
5
Comments
Styling a table row
Question
CSS
OutSystems Widgets
Is there any way of having the ability to add style to the row level of the TableRecords element? I want to be able to style a row differently based on certain criteria on the row data. The way I've found around this is to use the extended properties to hardcode the CSS, however, this is not great from a reusability point of view.
J.
MVP
not sure what the problem is with the reusability?
you assign a class to the tr, which is pretty reusable to me?
Steve Dalgleish
I guess I wasn't clear. My point was more to do with why there isn't an option for style in the properties of a TableRecords tr when there is for the table and the td. Struck me as odd. You're right though, I can just add the class to the tr in the extended properties.
TableRecordsRow.JPG
Justin James
MVP
Steve -
I've been wondering the same thing for a while now! It seems like an oversight more than a deliberate decision.
J.Ja
J.
MVP
true,
furthermot it always striked me as odd, when you assign a style to the odd-even line style it gets added to the TD's instead of the TR.
which may be correct in the past, but nowadays you should do it on the tr.
(so you can have more control in the css with nth-child)
Justin James
MVP
Yes, that's surprised me a few times as well, as I apply a style to the row, add "!important" and STILL struggle to understand why my style doesn't seem to be working. :D
J.Ja
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...