HTMLFormGroup Method (String, String, String, String, String, String, Boolean, String, DataPlacements) | |
Gives HTML code for Form line formatted by Bootstrap in two columns (label and control (editor or button))
Namespace:
SOWIWeb.Helper
Assembly:
SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string FormGroup(
string pName,
string pLabel,
string pControl,
string pStyleColLabel = "col-sm-2",
string pStyleColEdit = "col-sm-10",
string pStyleForm = "form-group",
bool pRequired = false,
string pTooltipText = "",
DataPlacements pTooltipPlacement = DataPlacements.top
)
Public Shared Function FormGroup (
pName As String,
pLabel As String,
pControl As String,
Optional pStyleColLabel As String = "col-sm-2",
Optional pStyleColEdit As String = "col-sm-10",
Optional pStyleForm As String = "form-group",
Optional pRequired As Boolean = false,
Optional pTooltipText As String = "",
Optional pTooltipPlacement As DataPlacements = DataPlacements.top
) As String
Parameters
- pName
- Type: SystemString
label and control name (linked) - pLabel
- Type: SystemString
[Missing <param name="pLabel"/> documentation for "M:SOWIWeb.Helper.HTML.FormGroup(System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.String,SOWIWeb.Helper.DataPlacements)"]
- pControl
- Type: SystemString
HTML control code for Editor or Button (use extension .ToHTMLEditor or methods ButtonBy*) - pStyleColLabel (Optional)
- Type: SystemString
default is label standard - pStyleColEdit (Optional)
- Type: SystemString
default is control (Editor/Button) standard - pStyleForm (Optional)
- Type: SystemString
default is Form standard - pRequired (Optional)
- Type: SystemBoolean
mandatory field - pTooltipText (Optional)
- Type: SystemString
help text use on editor object tooltip - pTooltipPlacement (Optional)
- Type: SOWIWeb.HelperDataPlacements
tooltip placement (default top)
Return Value
Type:
String[Missing <returns> documentation for "M:SOWIWeb.Helper.HTML.FormGroup(System.String,System.String,System.String,System.String,System.String,System.String,System.Boolean,System.String,SOWIWeb.Helper.DataPlacements)"]
Remarks
Result example for HTML code
<div class="form-group">
<div class="col-sm-2">
<label for="exampleInputEmail1">Email address</label>
</div>
<div class="col-sm-10">
<input type = "email" class="form-control" id="exampleInputEmail1" placeholder="Email">
</div>
</div>
See Also