Input
Assembly: ServiceStack.Client.dll
View Source
Declaration
public static class Input
Properties
TypesMap
View Source
Declaration
public static Dictionary<Type, string> TypesMap { get; set; }
TypeNameMap
View Source
Declaration
public static Dictionary<string, string> TypeNameMap { get; }
Methods
FieldsPerRow(InputInfo, Int32, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)
View Source
Declaration
public static InputInfo FieldsPerRow(this InputInfo input, int sm, int? md = null, int? lg = null, int? xl = null, int? xl2 = null)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.InputInfo | input |
System.Int32 | sm |
System.Nullable<System.Int32> | md |
System.Nullable<System.Int32> | lg |
System.Nullable<System.Int32> | xl |
System.Nullable<System.Int32> | xl2 |
AddCss(InputInfo, Action<Input.ConfigureCss>)
View Source
Declaration
public static InputInfo AddCss(this InputInfo input, Action<Input.ConfigureCss> configure)
Returns
Parameters
Type | Name |
---|---|
ServiceStack.InputInfo | input |
System.Action<ServiceStack.Html.Input.ConfigureCss> | configure |
For<TModel>(Expression<Func<TModel, Object>>, Action<InputInfo>)
View Source
Declaration
public static InputInfo For<TModel>(Expression<Func<TModel, object>> expr, Action<InputInfo> configure)
Returns
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression<System.Func<<TModel>,System.Object>> | expr |
System.Action<ServiceStack.InputInfo> | configure |
Type Parameters
TModel
For<TModel>(Expression<Func<TModel, Object>>)
View Source
Declaration
public static InputInfo For<TModel>(Expression<Func<TModel, object>> expr)
Returns
Parameters
Type | Name |
---|---|
System.Linq.Expressions.Expression<System.Func<<TModel>,System.Object>> | expr |
Type Parameters
TModel
Create(PropertyInfo)
View Source
Declaration
public static InputInfo Create(PropertyInfo pi)
Returns
Parameters
Type | Name |
---|---|
System.Reflection.PropertyInfo | pi |
GetEnumEntries(Type)
View Source
Declaration
public static KeyValuePair<string, string>[] GetEnumEntries(Type enumType)
Returns
System.Collections.Generic.KeyValuePair<System.String,System.String>[]
Parameters
Type | Name |
---|---|
System.Type | enumType |
GetEnumEntries(Type, out KeyValuePair<String, String>[])
View Source
Declaration
public static bool GetEnumEntries(Type enumType, out KeyValuePair<string, string>[] entries)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Type | enumType |
System.Collections.Generic.KeyValuePair<System.String,System.String>[] | entries |
GetEnumValues(Type)
View Source
Declaration
public static string[] GetEnumValues(Type enumType)
Returns
System.String[]
Parameters
Type | Name |
---|---|
System.Type | enumType |
GetDescription(MemberInfo)
View Source
Declaration
public static string GetDescription(MemberInfo mi)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Reflection.MemberInfo | mi |
FromGridLayout(IEnumerable<List<InputInfo>>)
Convert from Grid Matrix of Inputs into a flat List of Inputs with configured grid classes
View Source
Declaration
public static List<InputInfo> FromGridLayout(IEnumerable<List<InputInfo>> gridLayout)
Returns
System.Collections.Generic.List<ServiceStack.InputInfo>
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.List<ServiceStack.InputInfo>> | gridLayout |