Serialize the panel config that triggered this event, ON DEMAND. The
serialization is deferred so a config change with no interested listener
costs nothing; call getConfig() only if you need the config.
Valid ONLY synchronously within the event callback — the backing closure
is released immediately after dispatch, so stashing getConfig and
calling it later throws. To read config outside the callback, use
viewer.save() / viewer.saveWorkspace().
Serialize the panel config that triggered this event, ON DEMAND. The serialization is deferred so a config change with no interested listener costs nothing; call
getConfig()only if you need the config.Valid ONLY synchronously within the event callback — the backing closure is released immediately after dispatch, so stashing
getConfigand calling it later throws. To read config outside the callback, useviewer.save()/viewer.saveWorkspace().