Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 704 Bytes

CONFIG_PLUGIN.md

File metadata and controls

23 lines (18 loc) · 704 Bytes

Config

Manages the handling of configuration. With configurations an arrangement gets the possibility to configure an embedded fragment and overwrite the default configuration of it.

The Collage will merge config objects for specific MFs in order:

  1. an empty object
  2. the config object that matches the url
  3. the config object that matches the name
  4. the config properties on the dom element
sequenceDiagram
  participant Arrangement
  participant Fragment

  Arrangement ->> Arrangement: onLoad(Fragment)
    activate Arrangement
      Arrangement ->> Arrangement: collectConfigOf(Fragment)
      Arrangement ->> Fragment: updateConfig({config})
    deactivate Arrangement

Loading