Ejemplo n.º 1
0
 public static CellTemplateRegion <object> Cell(this ITemplatesScope ts, string templateId)
 {
     return(new CellTemplateRegion <object>(ts.TemplatesPrefix, templateId, ts.Output));
 }
Ejemplo n.º 2
0
 public static HeaderWrapperTemplateRegion HeaderWrapper(this ITemplatesScope t, string templateId = "headerWrapper")
 {
     return(new HeaderWrapperTemplateRegion(t.TemplatesPrefix, templateId, t.Output));
 }
Ejemplo n.º 3
0
 public static RowWrapperTemplateRegion <TRow> RowWrapper <TRow>(this ITemplatesScope tp, string templateId = "rowWrapper")
 {
     return(new RowWrapperTemplateRegion <TRow>(tp.TemplatesPrefix, templateId, tp.Output));
 }
Ejemplo n.º 4
0
 public static PluignWrapperTemplateRegion <T> PluginWrapper <T>(this ITemplatesScope t, string templateId = "pluginWrapper")
 {
     return(new PluignWrapperTemplateRegion <T>(t.TemplatesPrefix, templateId, t.Output));
 }
Ejemplo n.º 5
0
        /// <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)));
        }
Ejemplo n.º 6
0
 /// <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));
 }
Ejemplo n.º 7
0
 public static CellWrapperTemplateRegion <object> CellWrapper(this ITemplatesScope t, string templateId = "cellWrapper")
 {
     return(new CellWrapperTemplateRegion <object>(t.TemplatesPrefix, templateId, t.Output));
 }
Ejemplo n.º 8
0
 public static MessageWrapperTemplateRegion MessagesWrapper(this ITemplatesScope t, string templateId = "messages")
 {
     return(new MessageWrapperTemplateRegion(t.TemplatesPrefix, templateId, t.Output));
 }