cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Translate the entire conversation x

How to dynamically apply a CSS class to a widget in Vuforia Studio?

MA8731174
16-Pearl

How to dynamically apply a CSS class to a widget in Vuforia Studio?

 

Hi everyone,
I'm trying to apply a custom CSS class to a widget (e.g., textArea-2) in Vuforia Studio using JavaScript.
Here’s what I tried:

 

 
 
let redPlateDescriptionClass = 'redBackGroundClass';
 
$scope.view.wdg["textArea-2"].class = redPlateDescriptionClass;
 

But this doesn’t seem to work. Is there a correct way to assign a class dynamically in Vuforia Studio?

Thanks in advance!

ACCEPTED SOLUTION

Accepted Solutions

Fortunately it works in ipad and thats what we wanted. In browser the class could not get executed.

View solution in original post

1 REPLY 1

Fortunately it works in ipad and thats what we wanted. In browser the class could not get executed.

Announcements
Top Tags