Skip to content

BundleExtensions

Bundling helper that builds the common toolbar stylesheet bundle and the version-specific Kendo UI stylesheet bundle a consuming application registers at startup, plus a generic helper for appending .css files to any bundle.

Purpose

  • Bundling helper that builds the common toolbar stylesheet bundle and the version-specific Kendo UI stylesheet bundle a consuming application registers at startup, plus a generic helper for appending .css files to any bundle.

Context

  • Namespace: SAIF.Web.Mvc.Extensions
  • Assembly/package: SAIF.Framework.Web.Mvc (source-shipping NuGet package)
  • Kind: static class

Public members

Member Signature Purpose
RegisterCommonStyles(BundleCollection, string virtualPath) public static StyleBundle RegisterCommonStyles(this BundleCollection bundles, string virtualPath) Builds and registers a bundle including toolbar.css; see the "Register style bundles" operation.
RegisterKendoStyles(BundleCollection, string virtualPath, string version) public static StyleBundle RegisterKendoStyles(this BundleCollection bundles, string virtualPath, string version) Builds and registers a bundle including the version-specific kendo.common.min.css and kendo.default.min.css.
IncludeMany(StyleBundle, string baseUrl, params string[] files) public static StyleBundle IncludeMany(this StyleBundle bundle, string baseUrl, params string[] files) Appends {baseUrl}/{file}.css for each supplied file name, always adding the .css extension itself (see BR-59).

Sources

  • src/Web.Mvc/Extensions/BundleTableExtensions.cs