SaaS CMS has officially launched! Learn more now.

Class DojoExtensions

Extension methods to facilitate dojo development

Inheritance
System.Object
DojoExtensions
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: 7.19.2
Syntax
public static class DojoExtensions

Methods

DojoConfig(Page)

Returns a script tag containing a dojoConfig object.

Declaration
[Obsolete("Use .ConfigureDojo")]
public static string DojoConfig(this Page page)
Parameters
Type Name Description
System.Web.UI.Page page

Refere

Returns
Type Description
System.String

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

DojoConfig(Page, Boolean)

Returns a script tag containing a dojoConfig object.

Declaration
[Obsolete("Use .ConfigureDojo")]
public static string DojoConfig(this Page page, bool parseOnLoad)
Parameters
Type Name Description
System.Web.UI.Page page

Refere

System.Boolean parseOnLoad

indicate if dojo should parse the DOM on load

Returns
Type Description
System.String

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

DojoConfig(Page, Boolean, Boolean)

Returns a script tag containing a dojoConfig object.

Declaration
[Obsolete("Use .ConfigureDojo")]
public static string DojoConfig(this Page page, bool parseOnLoad, bool registerModulePaths)
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.

Returns
Type Description
System.String

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

DojoConfig(Page, Boolean, Boolean, Boolean)

Returns a script tag containing a dojoConfig object.

Declaration
[Obsolete("Use .ConfigureDojo")]
public static string DojoConfig(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 = { ... };