View Single Post
Hi,

Is there a way to format a shape based on the key-value data of that object?

Example:

If I have a widget with the key values:

fav-color:red
name:joe
age:21
sex:male

Ideally, one would like to apply rules to the shapes- if 'sex' == 'male' -> shape = circle, stuff like that.

Immediately, I'd be really happy if I could just get the label of the object formatted so that I can show the fields that I want in a particular order:

label = 'name' + <p/> + <bold>'sex'+","+'age'+</bold>

If there is no way to do this, it would be really handy if there were.

Thanks,
Josh