|
DataContextAddCheckBoxField(String, String, String, String, String, String, String, String, Boolean) Method
|
Generates template based check box field based on specified parameters.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax Public Function AddCheckBoxField (
fieldName As String,
Optional fieldLabel As String = Nothing,
Optional fieldID As String = Nothing,
Optional groupDataBinding As String = Nothing,
Optional labelDataBinding As String = Nothing,
Optional customDataBinding As String = Nothing,
Optional dependencyFieldName As String = Nothing,
Optional toolTip As String = Nothing,
Optional initialFocus As Boolean = false
) As String
public:
String^ AddCheckBoxField(
String^ fieldName,
String^ fieldLabel = nullptr,
String^ fieldID = nullptr,
String^ groupDataBinding = nullptr,
String^ labelDataBinding = nullptr,
String^ customDataBinding = nullptr,
String^ dependencyFieldName = nullptr,
String^ toolTip = nullptr,
bool initialFocus = false
)
member AddCheckBoxField :
fieldName : string *
?fieldLabel : string *
?fieldID : string *
?groupDataBinding : string *
?labelDataBinding : string *
?customDataBinding : string *
?dependencyFieldName : string *
?toolTip : string *
?initialFocus : bool
(* Defaults:
let _fieldLabel = defaultArg fieldLabel null
let _fieldID = defaultArg fieldID null
let _groupDataBinding = defaultArg groupDataBinding null
let _labelDataBinding = defaultArg labelDataBinding null
let _customDataBinding = defaultArg customDataBinding null
let _dependencyFieldName = defaultArg dependencyFieldName null
let _toolTip = defaultArg toolTip null
let _initialFocus = defaultArg initialFocus false
*)
-> string
function AddCheckBoxField(fieldName, fieldLabel, fieldID, groupDataBinding, labelDataBinding, customDataBinding, dependencyFieldName, toolTip, initialFocus);
View SourceParameters
- 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
StringGenerated HTML for new check box field based on specified parameters.
See Also