Class ClientResourceExtensions
Client resource rendering extensions
Inheritance
System.Object
ClientResourceExtensions
Namespace: EPiServer.Framework.Web.Mvc.Html
Assembly: EPiServer.Framework.AspNetCore.dll
Version: 12.0.3Syntax
public static class ClientResourceExtensions : Object
Methods
CssLink(IHtmlHelper, String)
Returns a CSS link tag.
Declaration
public static IHtmlContent CssLink(this IHtmlHelper html, string virtualPath)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
html | The html helper to hook the helper on. |
System. |
virtualPath | The path to the css resource. |
Returns
Type | Description |
---|---|
Microsoft. |
A link html tag. |
RequiredClientResources(IHtmlHelper, String)
Renders required client resources for specified area.
Declaration
public static IHtmlContent RequiredClientResources(this IHtmlHelper html, string renderingArea)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
html | The HTML helper. |
System. |
renderingArea | The rendering area name to render required client resources for. |
Returns
Type | Description |
---|---|
Microsoft. |
ScriptResource(IHtmlHelper, String)
Returns a script tag.
Declaration
public static IHtmlContent ScriptResource(this IHtmlHelper html, string sourcePath)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
html | The html helper to hook the helper on. |
System. |
sourcePath | The path to the script resource. |
Returns
Type | Description |
---|---|
Microsoft. |
A script html tag. |