HTMLButtonByToggle Method | |
Generate HTML code for button this can collapse/expand a panel or display a modal dialog
Namespace:
SOWIWeb.Helper
Assembly:
SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static string ButtonByToggle(
string pToggleTarget,
ToggleType pToggleType,
string pIcon,
string pLabel,
bool pDisabled = false,
string pStyle = "btn btn-default",
string pTooltipText = "",
DataPlacements pTooltipPlacement = DataPlacements.bottom,
string pEventHandler = "",
string pEventCommand = "",
Object pValue = null
)
Public Shared Function ButtonByToggle (
pToggleTarget As String,
pToggleType As ToggleType,
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 pEventHandler As String = "",
Optional pEventCommand As String = "",
Optional pValue As Object = Nothing
) As String
Parameters
- pToggleTarget
- Type: SystemString
id of HTML div from panel or dialog - pToggleType
- Type: SOWIWeb.HelperToggleType
e.g. collapse is a panel that collapse or expand
seeToggleType - pIcon
- Type: SystemString
- pLabel
- Type: SystemString
- pDisabled (Optional)
- Type: SystemBoolean
- pStyle (Optional)
- Type: SystemString
- pTooltipText (Optional)
- Type: SystemString
help text use on editor object tooltip - pTooltipPlacement (Optional)
- Type: SOWIWeb.HelperDataPlacements
tooltip placement (default bottom) - pEventHandler (Optional)
- Type: SystemString
e.g. onclick - pEventCommand (Optional)
- Type: SystemString
e.g. window.print() - 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.ButtonByToggle(System.String,SOWIWeb.Helper.ToggleType,System.String,System.String,System.Boolean,System.String,System.String,SOWIWeb.Helper.DataPlacements,System.String,System.String,System.Object)"]
Remarks
Example for HTML code
<button class="btn btn-primary" type="button"
data-toggle="collapse" data-target="#collapseExample"
aria-expanded="false" aria-controls="collapseExample">
Button with data-target
</button>
See Also