Skip to content

Column Labels #313

Answered by Brennan1994
rnugent3 asked this question in Q&A
Apr 5, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The way I'd propose to handle this is as I did in the Pilot UI.

I added a property to the ComputeComponentVM (which is a base level vm each of the relationships builds off of) which holds a string in the format shown above (xunit, yunit). I set that property on construction, and bind it to the view to display above the table with plot. This lets our tables stay as generic and reusable as possible, and keeps the changing of units out of more complicated data table code.

Currently, column headers are set by attribute on the row classes, like in the triangularRow class here:

We could make this a dynamic title instead, and pass down information to it from it's creator so that attribute coul…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rnugent3
Comment options

rnugent3 Apr 20, 2022
Collaborator Author

Answer selected by rnugent3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants