示例#1
0
 public virtual void LoadJavascriptModule(string relativePath, string staticFunctionInvokation = "run()")
 {
     JavaScript(JavascriptModule.Relative(relativePath), staticFunctionInvokation);
 }
示例#2
0
 /// <summary>
 /// Loads a Javascript (or Typescript) module upon page startup.
 /// </summary>
 /// <param name="staticFunctionInvokation">An expression to call [a static method] on the loaded module.</param>
 public void JavaScript(JavascriptModule module, string staticFunctionInvokation = "run()")
 {
     JavascriptActions.JavaScript(module.GenerateLoad(staticFunctionInvokation));
 }
示例#3
0
 public JsonResult JavaScript(JavascriptModule module, string staticFunctionInvokation = "run()")
 {
     return(JavaScript(module.GenerateLoad(staticFunctionInvokation)));
 }