Click or drag to resize

ExtensionsToHTMLEditor Method (Object, String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)

Gives HTML code for Input field

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string ToHTMLEditor(
	this Object pData,
	string pName,
	DataGridDataTypes pDataType,
	string pPlaceholder = "",
	string pEnumTypeName = "",
	string pListName = "",
	TempDataDictionary pTempData = null,
	bool pRequired = false,
	string pTooltipText = "",
	DataPlacements pTooltipPlacement = DataPlacements.top,
	string pEventHandler = "",
	string pEventCommand = ""
)

Parameters

pData
Type: SystemObject
value to be edited
pName
Type: SystemString
value for HTML property Name and ID
pDataType
Type: SOWIData.ManagementDataGridDataTypes
HTML Input field type
pPlaceholder (Optional)
Type: SystemString
label into Input field
pEnumTypeName (Optional)
Type: SystemString
Not in use! Reserve!
pListName (Optional)
Type: SystemString
List name or Enumeration name from pTempData
pTempData (Optional)
Type: TempDataDictionary
Data type (pDataType) List supported type of List based of IDataStandard

Data type (pDataType) Enumeration supported type of List or Dictionaray

pRequired (Optional)
Type: SystemBoolean
input required
Note Note
not all DataType supported
pTooltipText (Optional)
Type: SystemString
help text use on editor object tooltip
pTooltipPlacement (Optional)
Type: SOWIWeb.HelperDataPlacements
tooltip placement (default top)
pEventHandler (Optional)
Type: SystemString
HTML event handler e.g. onclick. Has more one than commands separated with ,
pEventCommand (Optional)
Type: SystemString
HTML event handler command e.g. java function. Has more one than commands separated with ,

Return Value

Type: String

[Missing <returns> documentation for "M:SOWIWeb.Helper.Extensions.ToHTMLEditor(System.Object,System.String,SOWIData.Management.DataGridDataTypes,System.String,System.String,System.String,System.Web.Mvc.TempDataDictionary,System.Boolean,System.String,SOWIWeb.Helper.DataPlacements,System.String,System.String)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

Use List then data structure must exist a field with name ID and Name

Note Note
HTML ID replace . with _ (MVC standard).
Note Note
HTML event declaration with parameter pEventHandleer and pEventCommand
See Also