Possibility to change colors of OutputField

Description of the limitation and why it is relevant to address

As a developer I want to change the colours of the OutputField so that I can inform the user if an input is wrong, successful or otherwise.

I think this is relevant for the VIKTOR platform because it makes informing the user even clearer without annoying workarounds.

Submitter proposed design (optional)

Be able to do something similar to DataItem in a DataView.

Current workarounds

The current workaround is to give None values to the OutputField, which causes all the OutputFields to turn to error messages. The downside is a toast that won’t disappear.

Requested by

@tom.slusarczyk

I agree this would be good.

It would be good to expand this to include more than the OutputField object. I see markdown is available for the Text object and the ui_name argument for the different input fields. This works for some basic markdown syntax.

However, when trying to set the font color it is ignored and the output is still black.

I am following the samples seen here:

I also agree this would be useful

Request by Grzegorz at Jacobs.