Skip to main content
Level 2
Oct 16, 2015 2:29 AM UTC
Solved

use of clientlibs

Can anyone give an efficient approach for inheritance in clientlibs?

Scenario is one clientlibs are having global level css and js , another can extend the global clientlibs and override the existing one and can add new CSS and JS based on the requirement.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

ogillAdobe EmployeeAccepted solution
Adobe Employee
Oct 16, 2015 2:29 AM UTC
Lokesh_Shivalingaiah
Level 10
Oct 16, 2015 2:29 AM UTC

for your use case, you can embed the global clientlib category and override the required classes and js in your clientlibs

Translate
edubey
Level 10
Oct 16, 2015 2:29 AM UTC

Hi, 

You can define all you global CSS in a client lib [A] and you can use this as a dependencies for all other css files defined in clientlib [B]. If you want to override css classes defined in global [A] to your [B] you can do it..

These post talks about it:

Translate