Class DojoExtensions
Extension methods to facilitate dojo development
Inheritance
Inherited Members
Namespace: EPiServer.Shell.Web.Mvc.Html
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
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 |
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 |
System.Boolean | async | if set to |
Returns
Type | Description |
---|---|
System.String | A string containing dojoConfig object. var dojoConfig = { ... }; |