Click or drag to resize

DataContextAddCheckBoxField(String, String, String, String, String, String, String, String, Boolean) Method

Generates template based check box field based on specified parameters.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public string AddCheckBoxField(
	string fieldName,
	string fieldLabel = null,
	string fieldID = null,
	string groupDataBinding = null,
	string labelDataBinding = null,
	string customDataBinding = null,
	string dependencyFieldName = null,
	string toolTip = null,
	bool initialFocus = false
)
View Source

Parameters

fieldName  String
Field name for value of check box field.
fieldLabel  String  (Optional)
Label name for check box field, defaults to fieldName.
fieldID  String  (Optional)
ID to use for check box field; defaults to check + 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.
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.

Return Value

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