Expand my Community achievements bar.

SOLVED

use of clientlibs

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee
3 Replies

Avatar

Level 10

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:

Avatar

Level 10

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

Avatar

Correct answer by
Employee