Class FieldExtensions
- Namespace
- Dynamicweb.Forms
- Assembly
- Dynamicweb.Forms.dll
public static class FieldExtensions
- Inheritance
-
FieldExtensions
- Inherited Members
Methods
GetAutoOrDefaultValue(Field)
Resolves auto value from current context, e.g. current user name or current date and time.
public static string GetAutoOrDefaultValue(this Field field)
Parameters
field
Field
Returns
GetFieldSize(Field)
Gets the size of the field or the form size if the field size is not set.
public static int GetFieldSize(this Field field)
Parameters
field
Field
Returns
GetFieldType(Field)
public static FieldType GetFieldType(this Field field)
Parameters
field
Field
Returns
GetHtml(Field)
Gets the field HTML.
public static string GetHtml(this Field field)
Parameters
field
Field
Returns
GetHtml(Field, string, bool)
Gets the field HTML.
public static string GetHtml(this Field field, string value, bool preview)
Parameters
field
FieldThe field to get HTML for.
value
stringThe value.
preview
boolif set to
true
[preview].
Returns
GetInputType(Field)
public static string GetInputType(this Field field)
Parameters
field
Field
Returns
HasPatternSupport(Field)
Gets a value indicating that this instance supports pattern attribute
public static bool HasPatternSupport(this Field field)
Parameters
field
Field
Returns
IsButton(Field)
Gets a value indicating whether this instance is button.
public static bool IsButton(this Field field)
Parameters
field
Field
Returns
IsInput(Field)
Gets a value indicating whether this instance is input.
public static bool IsInput(this Field field)
Parameters
field
Field
Returns
IsList(Field)
Gets a value indicating whether this instance is list and can have options.
public static bool IsList(this Field field)
Parameters
field
Field
Returns
IsOther(Field)
Gets a value indicating whether this instance is other.
public static bool IsOther(this Field field)
Parameters
field
Field
Returns
IsTextarea(Field)
Gets a value indicating whether this instance is text area.
public static bool IsTextarea(this Field field)
Parameters
field
Field
Returns
IsUserInput(Field)
Gets a value indicating whether this instance is user input.
public static bool IsUserInput(this Field field)
Parameters
field
Field
Returns
IsValidationInput(Field)
Gets a value indicating whether this instance is validation input.
public static bool IsValidationInput(this Field field)
Parameters
field
Field