Configuring

Use meta options to configuring Metro UI.

About

You can set up the global options of Metro UI with meta tags.


                    <meta name="metro4:init" content="true">
                    <meta name="metro4:locale" content="de-DE">
                    <meta name="metro4:week_start" content="1">
                

Meta options

Meta Value Desc
metro4:init true | false Determines whether Metro UI is automatically initialized
metro4:locale string Determines default locale
metro4:week_start 0 | 1 Determines week start 0 - sunday, 1 - monday
metro4:animation_duration integer Value in milliseconds for animation duration
metro4:callback_timeout integer Reserved for feature
metro4:timeout integer Value in milliseconds, used for notify and toasts
metro4:about true Show welcome text in console
metro4:cloak default Cloak effect. Works when you add class .m4-cloak to body. Value must be default or fade
metro4:cloak_duration 100 Cloak effect duration.

Metro UI initialization

By default Metro UI init immediately after loading, without waiting for all DOM content is load. If you need wait for all DOM content is load, you must:

  1. Set <meta name="metro4:init" content="false">
  2. Manually init Metro UI with method: Metro.init()