-
-
Notifications
You must be signed in to change notification settings - Fork 64
Html Attributes
caterwomtious edited this page Dec 3, 2014
·
4 revisions
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.
Html.RequiresCss("~/css/styles.css", new Dictionary<string, string>() { { "media", "only screen and (min-width: 474px)" } });
Docs coming soon...
Docs coming soon...
