UI-text background color

Hi,
I set the dynamic properties with this code without problem ...

output[0] = { ui_update: { label: "ROOM", font: 'Verdana', fontSize: '26', color: 'red' } }

I would like to change the background color too, so I created this class:

.back-text.blue .nrdb-ui-text {
    background-color: blue;
}

and I modified the code:

output[0] = { ui_update: { label: "ROOM", font: 'Verdana', fontSize: '26', color: 'white' }, class: 'back-text.blue' }

but without success (also the class must be dynamic)

I don't understand where I'm going wrong, can you help me?

This is not doing what you think

try changing the class name to .back-text-blue and in your data set class to back-text-blue

Ehm.... works fine, thank you (I've been looking for a solution for only 3 hours...)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.