HtmlHelpers.AddStyleHtmlHelper Class
Namespace: Nucleus.ViewFeatures.HtmlHelpers
Assembly: Nucleus.ViewFeatures.dll
Html helper used to add styles.
Methods
AddStyle
(IHtmlHelper,WellKnownScripts) Method
AddStyle (IHtmlHelper htmlHelper, WellKnownScripts script)
Add a well-known script.
AddStyle
(IHtmlHelper,String) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.css")
AddStyle
(IHtmlHelper,String,Boolean) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath, Boolean defer)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.css")
AddStyle
(IHtmlHelper,String,Boolean,Boolean) Method
AddStyle (IHtmlHelper htmlHelper, String stylesheetPath, Boolean defer, Boolean isDynamic)
Register the specified style to be added to the Layout or module's CSS styles.
Examples
@Html.AddScript("~/Extensions/MyModule/MyModule.css")
RenderStyles
(IHtmlHelper) Method
RenderStyles (IHtmlHelper htmlHelper)
Adds the scripts submitted by AddStyle to the layout. This method is intended for use by the Nucleus Core layout.