예제 #1
0
 /// <summary>
 /// Render the templates
 /// </summary>
 /// <param name="helper"></param>
 /// <param name="componentName"></param>
 /// <param name="rootPath"></param>
 /// <param name="bundleName"></param>
 /// <returns></returns>
 public static IHtmlString StratumTemplates(this HtmlHelper helper, string componentName, string rootPath = "", string bundleName = "")
 {
     return(StratumHelpers.StratumTemplates(componentName, rootPath));
 }
예제 #2
0
 /// <summary>
 /// Render All Scripts for the Stratum registered so far on the page.
 /// </summary>
 /// <param name="helper"></param>
 /// <returns>Script include</returns>
 public static IHtmlString StrataScripts(this HtmlHelper helper)
 {
     return(StratumHelpers.StrataScripts());
 }
예제 #3
0
 /// <summary>
 /// Render the scripts for only one component (includes it's dependencies)
 /// </summary>
 /// <param name="helper"></param>
 /// <param name="componentName"></param>
 /// <returns></returns>
 public static IHtmlString StratumScripts(this HtmlHelper helper, string componentName, object modelData = null, string myId = "", string rootPath = "")
 {
     return(StratumHelpers.StratumScripts(componentName, rootPath, myId, modelData));
 }
예제 #4
0
 public static IHtmlString Stratum <T>(this HtmlHelper helper, string componentName, object data = null, string myId = "", bool withScripts = false, bool withStyles = true, bool withTemplates = true, bool withViewInit = false, string rootPath = "") where T : UiStratumType
 {
     return(StratumHelpers.Stratum <T>(componentName, rootPath, myId, data, withScripts, withStyles, withTemplates, withViewInit));
 }