public override void Configure(HtmlConventionsManager conventions) { conventions.Validation.Always.Modify((tag, model) => { return tag.AddClass("bg-danger"); }); }
public override void Configure(HtmlConventionsManager conventions) { var l = conventions.Labels; //l.Always.Modify((tag, model) => //{ // return tag.AddClass("control-label"); //}); }
public static HtmlConventionsManager CreateProfile(string profile) { if (!profiles.ContainsKey(profile)) { profiles[profile] = new HtmlConventionsManager(); } return profiles[profile]; }
public static HtmlConventionsManager SetDefaults(this HtmlConventionsManager conventions) { conventions.Displays.DefaultBuilder(DefaultBuilders.BasicTagBuilder); conventions.Editors.DefaultBuilder(DefaultBuilders.FormInputBuilder); conventions.Labels.DefaultBuilder(DefaultBuilders.LabelBuilder); conventions.Validation.DefaultBuilder(DefaultBuilders.ValidationBuilder); return(conventions); }
public static HtmlConventionsManager CreateProfile(string profile) { if (!profiles.ContainsKey(profile)) { profiles[profile] = new HtmlConventionsManager(); } return(profiles[profile]); }
public override void Configure(HtmlConventionsManager conventions) { var e = conventions.Editors; // TwitterBootstrap(e); }
public static HtmlConventionsManager ConventionsRegistry(this ModelInfo info) { return(HtmlConventionsManager.GetCurrentRequestProfile(info.ViewContext.HttpContext)); }
public override void Configure(HtmlConventionsManager conventions) { }