Sharing data between panels and enactors

In some cases, panels and enactors may need to share data, such as a list of class names. In these cases, define the data at the root of the relevant preference block and reference it within the panel and enactor blocks, as seen in the example above (in the contrast and textFont preference blocks). The general structure and syntax is highlighted below:

Configuring Multiple Panels and Enactors for a Single Preference

Each preference block can contain configuration for at most one enactor and one panel. If more than one enactor and/or panel needs to be configured for a given preference, you can create another preference block with a new namespace.

Configuring a Single Panel for Multiple Enactors and Preferences

Each preference block defines only one preference, even if multiple preferences (with their own enactors) are displayed in the same panel. In these cases, multiple preference blocks still need to be configured:

Each preference block declares the common panel type, and

the detail information for this panel is defined in any one (and only one) of these panel block.

The example below shows two preferences (emphasizeLinks and inputsLarger) sharing the same panel fluid.prefs.panels.linksControls (lines 9 and 22). The details for this panel are only defined in the preference block for emphasizeLinks, on lines 10-12.