|
DataContextAddTextAreaField(String, Boolean, Int32, Int32, String, String, String, String, String, String, String, String, Boolean, Boolean) Method
|
Generates template based text area field based on specified parameters.
Namespace: GSF.Web.ModelAssembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax public string AddTextAreaField(
string fieldName,
bool required,
int maxLength = 0,
int rows = 2,
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
)
Public Function AddTextAreaField (
fieldName As String,
required As Boolean,
Optional maxLength As Integer = 0,
Optional rows As Integer = 2,
Optional fieldLabel As String = Nothing,
Optional fieldID As String = Nothing,
Optional groupDataBinding As String = Nothing,
Optional labelDataBinding As String = Nothing,
Optional requiredDataBinding As String = Nothing,
Optional customDataBinding As String = Nothing,
Optional dependencyFieldName As String = Nothing,
Optional toolTip As String = Nothing,
Optional initialFocus As Boolean = false,
Optional enableHotLinks As Boolean = true
) As String
public:
String^ AddTextAreaField(
String^ fieldName,
bool required,
int maxLength = 0,
int rows = 2,
String^ fieldLabel = nullptr,
String^ fieldID = nullptr,
String^ groupDataBinding = nullptr,
String^ labelDataBinding = nullptr,
String^ requiredDataBinding = nullptr,
String^ customDataBinding = nullptr,
String^ dependencyFieldName = nullptr,
String^ toolTip = nullptr,
bool initialFocus = false,
bool enableHotLinks = true
)
member AddTextAreaField :
fieldName : string *
required : bool *
?maxLength : int *
?rows : int *
?fieldLabel : string *
?fieldID : string *
?groupDataBinding : string *
?labelDataBinding : string *
?requiredDataBinding : string *
?customDataBinding : string *
?dependencyFieldName : string *
?toolTip : string *
?initialFocus : bool *
?enableHotLinks : bool
(* Defaults:
let _maxLength = defaultArg maxLength 0
let _rows = defaultArg rows 2
let _fieldLabel = defaultArg fieldLabel null
let _fieldID = defaultArg fieldID null
let _groupDataBinding = defaultArg groupDataBinding null
let _labelDataBinding = defaultArg labelDataBinding null
let _requiredDataBinding = defaultArg requiredDataBinding null
let _customDataBinding = defaultArg customDataBinding null
let _dependencyFieldName = defaultArg dependencyFieldName null
let _toolTip = defaultArg toolTip null
let _initialFocus = defaultArg initialFocus false
let _enableHotLinks = defaultArg enableHotLinks true
*)
-> string
function AddTextAreaField(fieldName, required, maxLength, rows, fieldLabel, fieldID, groupDataBinding, labelDataBinding, requiredDataBinding, customDataBinding, dependencyFieldName, toolTip, initialFocus, enableHotLinks);
View SourceParameters
- fieldName String
- Field name for text area field.
- required Boolean
- Determines if field name is required.
- maxLength Int32 (Optional)
- Defines maximum text area field length.
- rows Int32 (Optional)
- Number of rows for text area.
- fieldLabel String (Optional)
- Label name for text area field, defaults to fieldName.
- fieldID String (Optional)
- ID to use for text area field; defaults to text + 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
StringGenerated HTML for new text area field based on specified parameters.
See Also