Skip to content
caterwomtious edited this page Dec 3, 2014 · 4 revisions

ClientDependency Framework

Html tag attributes

In many cases you may want to add custom html attributes to the rendered script or link tags that are output. CDF can handle this no problem. There are numerous overloads for registering your dependencies and many of them contain an HtmlAttributes property that you can set.

MVC

Html.RequiresCss("~/css/styles.css", new Dictionary<string, string>() { { "media", "only screen and (min-width: 474px)" } });

Docs coming soon...

Webforms

Docs coming soon...

Clone this wiki locally