
Global defining components
Configure Metro 4 components with global defining objects.
About
Begin from 4.2.41
, you can setup components with global defining objects. In other words, you can set the default configuration for the components and refine it through the data attributes.
Config name
For each component in Metro 4 present a global configuration object. The rule for config name:
- Name is a camel case
- Name begin from prefix
metro
, nextComponentName
and in end suffixSetup
Example
metroAccordionSetup = {...}
Global component config must be defined before metro.js
load.