11.4.2 Assigning TOC images and expansion levels in JavaHelp 2
Mif2Go supports several JavaHelp 2 <toc> and <tocitem> attributes that allow you to control which TOC levels are expanded and collapsed, and what images are displayed in the TOC tree.
To set the <tocitem> expand attribute by level, assign Yes (expand) or No (collapse) to each level number:
; The JH default is to expand only top-level (1) items; this sets the
; <tocitem> expand attribute according to level.
The JavaHelp default is to expand only top-level (level 1) items.
To designate images to be displayed in the TOC tree, assign an image ID to each different TOC item. For example:
; The JH default is to use the Toc*Image graphics for all levels; this
; replaces those graphics by setting the <tocitem> image attributes.
; The image IDs are mapped in [JHImages] as usual
The JavaHelp default is to use the assigned Toc*Image graphics for all TOC levels. However, to use the same graphic for all TOC items at a given level, you can assign an image ID to the level number. For example:
; The image IDs are mapped in [JHImages]
You must map each image ID to the location of its corresponding graphic in section [JHImages]; see §11.8.1.2 Mapping image names to graphics files.
> 11 Generating JavaHelp or Oracle Help > 11.4 Generating contents and index > 11.4.2 Assigning TOC images and expansion levels in JavaHelp 2