|JS9 Demo: dynamic display selection|
By default, plugins are assigned to a specific display, but you can assign
a single plugin to multiple displays by setting its HTML
data attribute data-js9id to "*":
<div class="JS9Info" data-js9id="*"></div>When a plugin's js9id is assigned to all JS9 displays, it dynamically changes its output to the currently selected display.
By default, JS9 displays are selected via click to focus. Set JS9.globalOpts.dynamicSelect to "move" to select via mouse move.
Note that the magnifier and info box always track the mouse position, while the other windows track the selected display.
For developers: selecting a display fires the "ondynamicselect" event. See Local Analysis Tasks and Plugins for more details.