SaaS CMS has officially launched! Learn more now.

Class DojoConfigurationHelper

Html helper for writing the dojo configuration to the html page

Inheritance
System.Object
DojoConfigurationHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Web.Mvc.Html
Assembly: EPiServer.Shell.dll
Version: 10.10.4
Syntax
public static class DojoConfigurationHelper

Methods

ConfigureDojo(Page, DojoConfig)

Returns a script tag containing a dojoConfig object.

Declaration
public static string ConfigureDojo(this Page page, DojoConfig dojoConfig)
Parameters
Type Name Description
System.Web.UI.Page page
DojoConfig dojoConfig
Returns
Type Description
System.String

ConfigureDojo(Page, DojoConfig, Boolean)

Returns a script tag containing a dojoConfig object.

Declaration
public static string ConfigureDojo(this Page page, DojoConfig dojoConfig, bool registerModulePaths)
Parameters
Type Name Description
System.Web.UI.Page page
DojoConfig dojoConfig
System.Boolean registerModulePaths
Returns
Type Description
System.String

ConfigureDojo(Page, Boolean, Boolean, Boolean)

Returns a script tag containing a dojoConfig object.

Declaration
public static string ConfigureDojo(this Page page, bool parseOnLoad, bool registerModulePaths, bool async)
Parameters
Type Name Description
System.Web.UI.Page page

Refere

System.Boolean parseOnLoad

indicate if dojo should parse the DOM on load

System.Boolean registerModulePaths

if set to true include configured module paths.

System.Boolean async

if set to true [async].

Returns
Type Description
System.String

A string containing dojoConfig object. var dojoConfig = { ... };