HTMLPanelToggleGroup Method |
Namespace: SOWIWeb.Helper
public static string PanelToggleGroup( List<Panel> pPanels, string pPanelGroupName, bool pMultiselectable = true, string pStylePanelGroup = "panel-group" )
[Missing <returns> documentation for "M:SOWIWeb.Helper.HTML.PanelToggleGroup(System.Collections.Generic.List{SOWIWeb.Helper.Panel},System.String,System.Boolean,System.String)"]
@{ var lPanels = new List<SOWIWeb.Helper.Panel>(); lPanels.Add(new SOWIWeb.Helper.Panel("PanelObjekt", "Objekt", Html.Partial("_ObjektContentObjekt").ToString(), true)); lPanels.Add(new SOWIWeb.Helper.Panel("PanelAnlagekennlinie", "Anlagekennlinie", Html.Partial("_ObjektContentAnlagekennlinie").ToString(), false)); } <div> @Html.Raw(SOWIWeb.Helper.HTML.PanelToggleGroup(lPanels, "easyPlanObjekt")) </div>
<div> <div class="panel-group" id="easyPlanObjekt" role="tablist" aria-multiselectable="true"> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="PanelObjektHeadingID"> <h4 class="panel-title"> <a role="button" data-toggle="collapse" data-parent="#easyPlanObjekt" href="#PanelObjekt" aria-expanded="true" aria-controls="PanelObjekt"> Objekt </a> </h4> </div> <div id="PanelObjekt" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="PanelObjektHeadingID"> <div class="panel-body"> @Html.Partial("_ObjektContentObjekt") </div> </div> </div> <div class="panel panel-default"> <div class="panel-heading" role="tab" id="PanelAnlagekennlinieHeadingID"> <h4 class="panel-title"> <a class="collapsed" role="button" data-toggle="collapse" data-parent="#easyPlanObjekt" href="#PanelAnlagekennlinie" aria-expanded="false" aria-controls="PanelAnlagekennlinie"> Anlagekennlinie </a> </h4> </div> <div id="PanelAnlagekennlinie" class="panel-collapse collapse" role="tabpanel" aria-labelledby="PanelAnlagekennlinieHeadingID"> <div class="panel-body"> @Html.Partial("_ObjektContentAnlagekennlinie") </div> </div> </div> </div> </div>
@{ var lPanels = new List<SOWIWeb.Helper.Panel>(); lPanels.Add(new SOWIWeb.Helper.Panel("Test1", "Test 1", "Test 1 text", false)); lPanels.Add(new SOWIWeb.Helper.Panel("Test2", "Test 2", "Test 2 text", true)); lPanels.Add(new SOWIWeb.Helper.Panel("Test3", "Test 3", "Test 3 text", false)); } @Html.Raw(SOWIWeb.Helper.HTML.PanelToggleGroup(lPanels, "TestGroup1"))