Table of contents

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:

  1. Name is a camel case
  2. Name begin from prefix metro, next ComponentName and in end suffix Setup
Example

                    metroAccordionSetup = {...}
                

Global component config must be defined before metro.js load.