The DocLibCustom config section is where dependencies on custom client-side assets can be defined. These are defined in exactly the same way as for custom Forms dependencies.
The client-side dependencies are located in the <dependencies> config container element with the following structure:
<css src /> <js src />
where:
-
<css>: Stylesheet dependencies element with the following
attribute:
- src: Path to the css file, relative to the /res servlet
-
<js>: JavaScript dependencies element with the following
attribute:
- src: Path to the js file, relative to the /res servlet
Other actions properties can be overridden here, although it is recommended from a maintenance point of view to only override “simple” properties like the icon and label. These make it possible to reuse an action with document-biased icon and label to be used for folders.
Example config
<config evaluator="string-compare" condition="DocLibCustom">
<dependencies>
<css src="/custom/my-customization.css" />
<js src="/custom/my-customization.js" />
</dependencies>
</config>