Page 1 of 1

'styles' Argument in oxy_label(): Difference between 14.2 an

Posted: Mon Jan 27, 2014 5:52 pm
by drLocke97
I have a CSS that uses oxy_label() in 15.1. Here's the relevant snippet:

content: oxy_label(text, "(Print): Replace **** with Product Code", styles, "color:blue;");

However, when I give this CSS to my customer, who is using 14.2, an error is thrown:

"Unknown function argument: styles. . ."

1. Is there a difference between 14.2 and 15.1 that prevents this from working in 14.2?

2. What is the equivalent code for 14.2 that will work?

Thanks

Re: 'styles' Argument in oxy_label(): Difference between 14.

Posted: Mon Jan 27, 2014 6:09 pm
by alex_jitianu
Hi,

The styles property was introduced in Oxygen version 15 so prior versions do not recognize it as a supported property. Fortunately there is a dedicated property for setting the color and it will work in both versions:

Code: Select all

content: oxy_label(text, "(Print): Replace **** with Product Code", color, "blue");
Best regards,
Alex

Re: 'styles' Argument in oxy_label(): Difference between 14.

Posted: Mon Jan 27, 2014 8:32 pm
by drLocke97
Great. Thanks Alex.