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

Having trouble installing Oxygen? Got a bug to report? Post it all here.
drLocke97
Posts: 6
Joined: Mon Aug 12, 2013 9:25 pm

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

Post 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
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

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

Post 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
drLocke97
Posts: 6
Joined: Mon Aug 12, 2013 9:25 pm

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

Post by drLocke97 »

Great. Thanks Alex.
Post Reply