-
Notifications
You must be signed in to change notification settings - Fork 0
/
IRoboUIFormProvider.cs
63 lines (39 loc) · 3.85 KB
/
IRoboUIFormProvider.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Rendering;
namespace RoboUI
{
public interface IRoboUIFormProvider
{
string GetButtonSizeCssClass(ButtonSize buttonSize);
string GetButtonStyleCssClass(ButtonStyle buttonStyle);
string RenderActions(IHtmlHelper htmlHelper, IEnumerable<RoboUIFormAction> actions);
string RenderAction(IHtmlHelper htmlHelper, RoboUIFormAction action);
string RenderForm<TModel>(IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm) where TModel : class;
void RenderControl<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboControlAttribute roboAttribute) where TModel : class;
void RenderButtonAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboButtonAttribute roboAttribute) where TModel : class;
void RenderCascadingCheckBoxListAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboCascadingCheckBoxListAttribute roboAttribute) where TModel : class;
void RenderCascadingDropDownAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboCascadingDropDownAttribute roboAttribute) where TModel : class;
void RenderChoiceAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboChoiceAttribute roboAttribute) where TModel : class;
void RenderComplexAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboComplexAttribute roboAttribute) where TModel : class;
void RenderDatePickerAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboDatePickerAttribute roboAttribute) where TModel : class;
void RenderDivAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboDivAttribute roboAttribute) where TModel : class;
void RenderGridAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboGridAttribute roboAttribute) where TModel : class;
void RenderHiddenFieldAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboHiddenAttribute roboAttribute) where TModel : class;
void RenderHtmlViewAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboHtmlViewAttribute roboAttribute) where TModel : class;
void RenderImageAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboImageAttribute roboAttribute) where TModel : class;
void RenderLabelAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboLabelAttribute roboAttribute) where TModel : class;
void RenderNumericAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboNumericAttribute roboAttribute) where TModel : class;
void RenderSlugAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboSlugAttribute roboAttribute) where TModel : class;
void RenderTextAttribute<TModel>(HtmlTextWriter writer, IHtmlHelper htmlHelper, RoboUIFormResult<TModel> roboForm, RoboTextAttribute roboAttribute) where TModel : class;
}
public static class RoboUI
{
static RoboUI()
{
DefaultRoboUIFormProvider = new Bootstrap3RoboUIFormProvider();
DefaultRoboUIGridProvider = new KendoRoboUIGridProvider();
}
public static IRoboUIFormProvider DefaultRoboUIFormProvider { get; set; }
public static IRoboUIGridProvider DefaultRoboUIGridProvider { get; set; }
}
}