How to add clientlib for a extended component ?
I have created a Navigation component by extending the core navigation component. So now i want to add my custom clientlib to my Navigation component. how can i do that ?
I have created a Navigation component by extending the core navigation component. So now i want to add my custom clientlib to my Navigation component. how can i do that ?
It's as same as normal component. Sample screenshot is given below:

Here my accordion component is extending the core component. (clientlib can be in separate place not an issue)
You can call your custom clientlib using category in the html like this:
<sly data-sly-use.clientlibs="${'com.adobe.cq.wcm.core.components.models.ClientLibraries' @ categories=['core.wcm.components.accordion.v1','apps.commons.components.accordion.v1.accordion'], defer=true}">
${clientlibs.jsAndCssIncludes @ context="unsafe"}
</sly>
NB. If you add html or other files which are also exist in the core component then core component's files will override by yours. Dialog xml will add yours along with the core components properties.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.