##### 16.9.7.1 Naming the JavaScript macro for drop-down sections

By default, the name of the JavaScript macro is $DropJS. To specify a different name for this macro, and by implication, to supply your own macro body:

    [DropDowns]
    ; This is the code that goes in the <head> or in a JS file:
    DropJSCode = <$DropJS>

Enclose the macro name in angle brackets. Including this setting is tantamount to saying:

Do not write this macro; I am supplying my own version.

If you specify a value for DropJSCode, you must provide the named macro in your configuration file or in a macro library.

If you do not specify a value for DropJSCode, or if you do not provide the named macro, DITA2Go includes either the composite JavaScript code (see §16.9.4.1 Specifying the type of link for drop-down sections) or one of four built-in versions of this macro; see §16.9.7.4 Inspecting the JavaScript code for drop-down sections.

Previous Topic: 16.9.7 Deploying JavaScript code for drop-down sections

Next Topic: 16.9.7.2 Locating JavaScript code for drop-down sections

Parent Topic: 16.9.7 Deploying JavaScript code for drop-down sections

Sibling Topics:

16.9.7.2 Locating JavaScript code for drop-down sections

16.9.7.3 Directing DITA2Go to write drop-down JavaScript code

16.9.7.4 Inspecting the JavaScript code for drop-down sections

Table of Contents • Index