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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! 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