#### 16.9.5 Configuring drop-down blocks

To specify whether clicking inside an open drop-down block should close the block:

    [DropDowns]
    ; ClickBlockToClose = Yes (default)
    ;  or No (use if any links inside block)
    ClickBlockToClose = Yes

If any of your drop-down blocks contain links, set ClickBlockToClose=No.

To change the code for creating drop-down blocks, include the following settings to redefine the built-in macros:

    [DropDowns]
    DropBlockStart = <div class="<$DropClass>" id="<$$_DropID>"
      style="display:none;" <$DropDivAttr>>\n
    ; If ClickBlockToClose=No, this is omitted:
    DropDivAttr = onclick="noSection('<$$_DropID>')"
    DropBlockEnd = </div>\n

Each setting must be all on one line in your configuration file, even if it does not look that way here. Ordinarily you should not need to include these settings.

Previous Topic: 16.9.4.5 Modifying code for drop-down links

Next Topic: 16.9.6 Providing CSS for drop-down links and blocks

Parent Topic: 16.9 Including expandable sections in Help topics

Sibling Topics:

16.9.1 Understanding DITA2Go expandable drop-down sections

16.9.2 Setting up expandable sections for your document

16.9.3 Delimiting expandable drop-down sections

16.9.4 Configuring drop-down links

16.9.6 Providing CSS for drop-down links and blocks

16.9.7 Deploying JavaScript code for drop-down sections

16.9.8 Emulating Web Works Publisher drop-down hotspots

Table of Contents • Index