HtmlHelperExtensions.ThemeStyle Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

Overloads

ThemeStyle(HtmlHelper, string) Helper for rendering a themed stylesheet.
ThemeStyle(HtmlHelper, string, string, object, BundleOutput?) Helper for rendering a themed stylesheet.

ThemeStyle(HtmlHelper, string)

Helper for rendering a themed stylesheet.

public static HtmlString ThemeStyle(this HtmlHelper helper, string fileName)

Parameters

helper
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

fileName
string

Virtual path to scss file, e.g. ~/styles/weavy.scss

Returns

System.Web.HtmlString

ThemeStyle(HtmlHelper, string, string, object, BundleOutput?)

Helper for rendering a themed stylesheet.

public static HtmlString ThemeStyle(this HtmlHelper helper, string fileName, string htmlColor = null, object htmlAttributes = null, BundleOutput? output = default(BundleOutput? ))

Parameters

helper
System.Web.Mvc.HtmlHelper

The HTML helper instance that this method extends.

fileName
string

Virtual path to scss file, e.g. ~/styles/weavy.scss

htmlColor
string

html color, e.g. "red" or "#0275D8", null uses the color from the current Theme settings.

htmlAttributes
object
output
Weavy.Bundler.BundleOutput?

Returns

System.Web.HtmlString