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