Skip to main content
1-Visitor
May 4, 2020
Solved

Value Display State Formatting TW 8.5.0-b12

  • May 4, 2020
  • 3 replies
  • 1659 views

I'm not able to configure the state formatting option for the new Value Display widgets - it's not even listed in the properties. Will the new Value Display widgets have a State formatting option available? I know the old ones do, but those will be deprecated soon, or so it says... Any help appreciated!

Best answer by VladimirRosu_116627

@atidwel The previous post already provided the necessary answer, but I want to make you aware of a workaround that would work with the new widgets as well, until they get official suport for state-based formatting.

The state-based formatting modifies certain HTML attributes/css depending on the input value for a widget.

To achieve this you can use the CustomCSS mechanism and one expression. By using an expression with an input parameter (widget input value) that outputs a string (the custom CSS class name) you can set the CSS class for your widget depending on the input value. Hint: you can use multiple inputs, from other widgets, to set your Class.

3 replies

16-Pearl
May 5, 2020

The old Value Display widget will be there in 9.0 release as well. Adding state formatting to the new one is being targeted for a release later this year. 

19-Tanzanite
May 5, 2020

@atidwel The previous post already provided the necessary answer, but I want to make you aware of a workaround that would work with the new widgets as well, until they get official suport for state-based formatting.

The state-based formatting modifies certain HTML attributes/css depending on the input value for a widget.

To achieve this you can use the CustomCSS mechanism and one expression. By using an expression with an input parameter (widget input value) that outputs a string (the custom CSS class name) you can set the CSS class for your widget depending on the input value. Hint: you can use multiple inputs, from other widgets, to set your Class.

Community Manager
May 18, 2020

Hi @atidwel.

 

If the response provided by @VladimirRosu_116627 answered your question, please mark it as the Accepted Solution for the benefit of others on the community.

 

We appreciated your participation!

 

Regards.

 

--Sharon

Community Manager
June 2, 2020

Hi @atidwel.

 

I have marked the solution for your post.  If you disagree with the solution selected, please provide more information and I will remove it.

 

Regards.

 

--Sharon