public static CellTemplateRegion <object> Cell(this ITemplatesScope ts, string templateId) { return(new CellTemplateRegion <object>(ts.TemplatesPrefix, templateId, ts.Output)); }
public static HeaderWrapperTemplateRegion HeaderWrapper(this ITemplatesScope t, string templateId = "headerWrapper") { return(new HeaderWrapperTemplateRegion(t.TemplatesPrefix, templateId, t.Output)); }
public static RowWrapperTemplateRegion <TRow> RowWrapper <TRow>(this ITemplatesScope tp, string templateId = "rowWrapper") { return(new RowWrapperTemplateRegion <TRow>(tp.TemplatesPrefix, templateId, tp.Output)); }
public static PluignWrapperTemplateRegion <T> PluginWrapper <T>(this ITemplatesScope t, string templateId = "pluginWrapper") { return(new PluignWrapperTemplateRegion <T>(t.TemplatesPrefix, templateId, t.Output)); }
/// <summary> /// Sets JavaScript function that will be called after mentioned element is prepared to be destroyed (removed from HTML document). /// Rendered element's HTMLElement object will be passed as 1st parameter to this function /// </summary> /// <param name="ts">Template scope </param> /// <param name="functionName">Callback function reference or literal function</param> /// <param name="rawArgs">Other arguments to provide. Remember that here should be not constant values but Handlebar's JS expression. Feel free to include references to teimplate's viewMdel here</param> /// <returns></returns> public static MvcHtmlString DestroyCallback(this ITemplatesScope ts, string functionName, params string[] rawArgs) { var args = string.Join(" ", rawArgs); return(MvcHtmlString.Create(string.Format("{{{{{{DestroyCallback \"{0}\" {1} }}}}}}", functionName, args))); }
/// <summary> /// Declares template region for table layout /// </summary> /// <returns>Template region</returns> public static LayoutTemplateRegion Layout(this ITemplatesScope t, string templateId = "layout") { return(new LayoutTemplateRegion(t.TemplatesPrefix, templateId, t.Output)); }
public static CellWrapperTemplateRegion <object> CellWrapper(this ITemplatesScope t, string templateId = "cellWrapper") { return(new CellWrapperTemplateRegion <object>(t.TemplatesPrefix, templateId, t.Output)); }
public static MessageWrapperTemplateRegion MessagesWrapper(this ITemplatesScope t, string templateId = "messages") { return(new MessageWrapperTemplateRegion(t.TemplatesPrefix, templateId, t.Output)); }