Hi all,
I have a TableView added through the Internal Designer.
Now I need to style it based on values from the underlying DB data.
Something like "when value for column 7 is "XYZ" then cell text color --> red"
But also "all data in column 4 gets right aligned"
So far, I tried:
Is there any tutorial I may have missed? Thank you.
I have a TableView added through the Internal Designer.
Now I need to style it based on values from the underlying DB data.
Something like "when value for column 7 is "XYZ" then cell text color --> red"
But also "all data in column 4 gets right aligned"
So far, I tried:
B4X:
..
tvMyTable.StyleClasses.Add(File.GetUri(File.DirAssets, "Table.css"))
..
'CSS Table.css tried the following just to see if any effect applied...
.table-view .table-column {
-fx-alignment: CENTER-RIGHT;
}
.table-column {
-fx-alignment: CENTER-RIGHT;
}
.table-cell {
-fx-alignment: CENTER-RIGHT;
}
Is there any tutorial I may have missed? Thank you.