HTMLButtonByEvent Method | |
Generate HTML code for Botton with event and code
Namespace:
SOWIWeb.Helper
Assembly:
SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string ButtonByEvent(
string pEventHandler,
string pEventCommand,
string pIcon,
string pLabel,
bool pDisabled = false,
string pStyle = "btn btn-default",
string pTooltipText = "",
DataPlacements pTooltipPlacement = DataPlacements.bottom,
Object pValue = null
)
Public Shared Function ButtonByEvent (
pEventHandler As String,
pEventCommand As String,
pIcon As String,
pLabel As String,
Optional pDisabled As Boolean = false,
Optional pStyle As String = "btn btn-default",
Optional pTooltipText As String = "",
Optional pTooltipPlacement As DataPlacements = DataPlacements.bottom,
Optional pValue As Object = Nothing
) As String
Parameters
- pEventHandler
- Type: SystemString
e.g. onclick - pEventCommand
- Type: SystemString
e.g. window.print() - pIcon
- Type: SystemString
e.g. glyphicon glyphicon-pencil - pLabel
- Type: SystemString
[Missing <param name="pLabel"/> documentation for "M:SOWIWeb.Helper.HTML.ButtonByEvent(System.String,System.String,System.String,System.String,System.Boolean,System.String,System.String,SOWIWeb.Helper.DataPlacements,System.Object)"]
- pDisabled (Optional)
- Type: SystemBoolean
[Missing <param name="pDisabled"/> documentation for "M:SOWIWeb.Helper.HTML.ButtonByEvent(System.String,System.String,System.String,System.String,System.Boolean,System.String,System.String,SOWIWeb.Helper.DataPlacements,System.Object)"]
- pStyle (Optional)
- Type: SystemString
default: btn btn-default | btn-block (span the full width of a parent) | sizes: btn-lg, btn-sm, btn-xs - pTooltipText (Optional)
- Type: SystemString
help text use on editor object tooltip - pTooltipPlacement (Optional)
- Type: SOWIWeb.HelperDataPlacements
tooltip placement (default bottom) - pValue (Optional)
- Type: SystemObject
HTML attribute value e.g. standard data item toolbar has { id = 2 }
Return Value
Type:
String[Missing <returns> documentation for "M:SOWIWeb.Helper.HTML.ButtonByEvent(System.String,System.String,System.String,System.String,System.Boolean,System.String,System.String,SOWIWeb.Helper.DataPlacements,System.Object)"]
See Also