Click or drag to resize

DataContextAddInputField(String, Boolean, Int32, String, String, String, String, String, String, String, String, String, Boolean, Boolean) Method

Generates template based input text field based on specified parameters.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public string AddInputField(
	string fieldName,
	bool required,
	int maxLength = 0,
	string inputType = null,
	string fieldLabel = null,
	string fieldID = null,
	string groupDataBinding = null,
	string labelDataBinding = null,
	string requiredDataBinding = null,
	string customDataBinding = null,
	string dependencyFieldName = null,
	string toolTip = null,
	bool initialFocus = false,
	bool enableHotLinks = true
)
View Source

Parameters

fieldName  String
Field name for input text field.
required  Boolean
Determines if field name is required.
maxLength  Int32  (Optional)
Defines maximum input field length.
inputType  String  (Optional)
Input field type, defaults to text.
fieldLabel  String  (Optional)
Label name for input text field, defaults to fieldName.
fieldID  String  (Optional)
ID to use for input field; defaults to input + fieldName.
groupDataBinding  String  (Optional)
Data-bind operations to apply to outer form-group div, if any.
labelDataBinding  String  (Optional)
Data-bind operations to apply to label, if any.
requiredDataBinding  String  (Optional)
Boolean data-bind operation to apply to required state, if any.
customDataBinding  String  (Optional)
Extra custom data-binding operations to apply to field, if any.
dependencyFieldName  String  (Optional)
Defines default "enabled" subordinate data-bindings based a single boolean field, e.g., a check-box.
toolTip  String  (Optional)
Tool tip text to apply to field, if any.
initialFocus  Boolean  (Optional)
Use field for initial focus.
enableHotLinks  Boolean  (Optional)
Enable clickable URLs and e-mail addresses in view mode.

Return Value

String
Generated HTML for new input field based on specified parameters.
See Also