Select to view content in your preferred language

Dashboard List Advanced Formatting

1589
1
Jump to solution
06-10-2022 11:53 AM
by Anonymous User
Not applicable

In the list widget in the dashboard, I am just trying to change the letters from all uppercase to proper.  This is what I have so far, I am not sure how to get it to return though. Am I on the right track? Thank you.

 

prop = Proper($datapoint["Case_type"], 'everyword')

return {
textColor: '',
backgroundColor: '',
separatorColor:'',
selectionColor: '',
selectionTextColor: '',

//attributes: {)
// prop: prop
// }
}

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

That first line would be var prop = ...

And then remove the // from the attributes area, since that makes them comments.

And then in your list, you'll actually reference the proper-case strings by using {expression/prop}, instead of {Case_type}.

- Josh Carlson
Kendall County GIS

View solution in original post

1 Reply
jcarlson
MVP Esteemed Contributor

That first line would be var prop = ...

And then remove the // from the attributes area, since that makes them comments.

And then in your list, you'll actually reference the proper-case strings by using {expression/prop}, instead of {Case_type}.

- Josh Carlson
Kendall County GIS