public string GetControlGroupTemplate(InputControls type, bool localizable = false) { var index = "E__" + type.ToString() + (localizable ? "__LOC" : ""); if (_controlTemplates.TryGetValue(index, out string t)) { return(t); } return(DefaultControlGroupTemplate); }
public void SetControlGroupTemplate(InputControls type, bool?localizable, string temp) { var index = "E__" + type.ToString(); if (localizable == null) { _controlTemplates[index] = temp; _controlTemplates[index + "__LOC"] = temp; } else { index = index + (localizable.Value ? "__LOC" : ""); } }
public virtual IHtmlContent Write(InputControls cont, bool localizable = false) { return(Write("InputControls/" + cont.ToString(), localizable)); }
public virtual string GetInputControl(InputControls cont) { return(BasePath + "/InputControls/" + cont.ToString() + ".cshtml"); }
public Accessibility ProcessCell <T, TValue>(IHtmlHelper <T> helper, Expression <Func <T, TValue> > exp, InputControls cont, MoldsterHtmlContainer parent = null) { string id = RazorUtils.GetIdentifier(exp); return(ProcessCell(helper, id, cont.ToString(), parent)); }
public Accessibility ProcessCell(IHtmlHelper helper, string textId, InputControls cont, MoldsterHtmlContainer parent = null) { return(ProcessCell(helper, textId, cont.ToString(), parent)); }
public Accessibility Process <T, TValue>(IHtmlHelper <T> helper, Expression <Func <T, TValue> > exp, InputControls cont, string extra = null) { return(Process(helper, exp, cont.ToString(), extra)); }