You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to add classes based on some condition

Summary:

Hi Experts

I want to add few css classes to component like input text field based on some condition like if the screen size is medium or large but I want to add few other classes foe same component always irrespective of condition.

always show class = oj-sm-2, oj-md-4, oj-flex-item => always

hide classes = oj-panel


(above classes names i have provided just to convey the problem statement.) Please help me

Content (please ensure you mask any confidential information):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!