Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Column Formatting unable to retrieve additional values (like Hyperlink desc) #1070
Expected or Desired Behavior
The use of
However, other fields don't return as objects they return as separate values with a . in the name. For example, a Hyperlink field comes back as FieldName and FieldName.desc both as top level properties (not as an object).
It is expected that you would be able to pass
So no combination of
Steps to Reproduce
Apply custom formatting to a Hyperlink column and set the
Instead of immediately splitting the value in the
If this evaluates, then that's the value that should be used and you can skip the splitting and object evaluation that current exists (and works for User and Lookup fields).
Alternatively, a check could be made for the field type (as is done with Number, User, and Lookup) and if it is a Hyperlink then the evaluation could be simplified.
Currently Number fields just get the float value (
I'd also say that the DateTime FriendlyDisplay value is not really necessary (at least for me), but I wouldn't think it would be too hard to support it as well.
Document libraries also return several properties starting with a period that may or may not be helpful (the only one I would likely use is the