Exemplo n.º 1
0
 public virtual void LoadJavascriptModule(string relativePath, string staticFunctionInvokation = "run()")
 {
     JavaScript(JavascriptModule.Relative(relativePath), staticFunctionInvokation);
 }
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public JsonResult JavaScript(JavascriptModule module, string staticFunctionInvokation = "run()")
 {
     return(JavaScript(module.GenerateLoad(staticFunctionInvokation)));
 }