HTMLPanelToggle Method (String, String, String, Boolean, String, String, String, String, String, String) |
Namespace: SOWIWeb.Helper
public static string PanelToggle( string pPanelName, string pPanelTitle, string pPanelContent, bool pExpanded, string pParentName = "", string pHeadingID = "", string pStylePanel = "panel panel-default", string pStyleHeading = "panel-heading", string pStyleTitle = "panel-title", string pStyleContent = "panel-body" )
[Missing <returns> documentation for "M:SOWIWeb.Helper.HTML.PanelToggle(System.String,System.String,System.String,System.Boolean,System.String,System.String,System.String,System.String,System.String,System.String)"]
// with text @Html.Raw(SOWIWeb.Helper.HTML.PanelToggle("TESTText", "Test Text", "Panel test content text", true)) // with HTML partial to string @Html.Raw(SOWIWeb.Helper.HTML.PanelToggle("TESTContent", "Test Content", Html.Partial("_ObjektContentObjekt").ToString(), true))
This example as HTML code result from test case of Panel formatted by Bootstrap
<div class="panel panel-default"> <div id="TestPanelHeadingID" class="panel-heading" role="tab"> <h4 class="panel-title"> <a aria-controls="TestPanel" aria-expanded="true" data-toggle="collapse" href="#TestPanel" role="button"> Panel Titel - Test</a></h4> </div> <div id="TestPanel" aria-labelledby="TestPanelHeadingID" class="panel-collapse collapse in" role="tabpanel"> <div class="panel-body">Test SOWI Web Helper HTML Panel Toggle on 22.04.2017 12:02:25</div> </div> </div>