Interface ClientLibraries
Defines the
ClientLibraries Sling Model used to collect and include client libraries.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the HTL option to inject the async attribute into the javascript script tag.static final StringName of the HTL option used to inject the clientlib categories.static final StringName of the HTL option to inject the crossorigin attribute into the javascript script tag.static final StringName of the HTL option to inject the defer attribute into the javascript script tag.static final StringName of the option used to specify the regular expression that needs to be matched by client library categories to be collected.static final StringName of the option used to specify if client libraries should be searched up the inheritance chain (using Sling resource supertype).static final booleanDefault value forOPTION_INHERITED.static final StringName of the HTL option to inject the media attribute into the stylesheet link tag.static final StringName of the HTL option to inject the onload attribute into the javascript script tag.static final StringName of the option used to specify theCollectionof resource types. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns a concatenation of all the HTML CSS link tags defined for the requested resource.default StringReturns a concatenation of all the CSS libraries defined for the requested resource.default StringReturns a concatenation of all the HTML JS script and CSS link tags defined for the requested resource.default StringReturns a concatenation of all the HTML JS script tags defined for the requested resource.default StringReturns a concatenation of all the JS libraries defined for the requested resource.
-
Field Details
-
OPTION_RESOURCE_TYPES
Name of the option used to specify theCollectionof resource types.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_FILTER_REGEX
Name of the option used to specify the regular expression that needs to be matched by client library categories to be collected.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_INHERITED
Name of the option used to specify if client libraries should be searched up the inheritance chain (using Sling resource supertype).- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_INHERITED_DEFAULT
static final boolean OPTION_INHERITED_DEFAULTDefault value forOPTION_INHERITED.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_CATEGORIES
Name of the HTL option used to inject the clientlib categories.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_ASYNC
Name of the HTL option to inject the async attribute into the javascript script tag.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_DEFER
Name of the HTL option to inject the defer attribute into the javascript script tag.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_CROSSORIGIN
Name of the HTL option to inject the crossorigin attribute into the javascript script tag.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_ONLOAD
Name of the HTL option to inject the onload attribute into the javascript script tag.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
OPTION_MEDIA
Name of the HTL option to inject the media attribute into the stylesheet link tag.- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
- See Also:
-
-
Method Details
-
getJsInline
Returns a concatenation of all the JS libraries defined for the requested resource.- Returns:
- the inlined JS libraries
- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
getCssInline
Returns a concatenation of all the CSS libraries defined for the requested resource.- Returns:
- the inlined CSS libraries
- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
getJsIncludes
Returns a concatenation of all the HTML JS script tags defined for the requested resource.- Returns:
- the HTML JS script tags
- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
getCssIncludes
Returns a concatenation of all the HTML CSS link tags defined for the requested resource.- Returns:
- the HTML CSS link tags
- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-
getJsAndCssIncludes
Returns a concatenation of all the HTML JS script and CSS link tags defined for the requested resource.- Returns:
- the HTML JS script and CSS link tags
- Since:
- com.adobe.cq.wcm.core.components.models 12.14.0
-