init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
19
KretaWeb/Views/Shared/EditorTemplates/PanelBarGeneric.cshtml
Normal file
19
KretaWeb/Views/Shared/EditorTemplates/PanelBarGeneric.cshtml
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
@using Kreta.Web.Models.EditorTemplates
|
||||
@model PanelBarBaseModel
|
||||
|
||||
@(Html.Kendo().PanelBar()
|
||||
.Name(Model.PanelName)
|
||||
.ExpandMode(Model.ExpandMode)
|
||||
.Animation(animation => animation.Enable(Model.Animation))
|
||||
.BindTo(Model.ChildModels, mapping =>
|
||||
{
|
||||
mapping.For<PanelBarChildModel>(binding => binding.ItemDataBound((panel, childModel) =>
|
||||
{
|
||||
panel.Text = childModel.PartialViewTitle;
|
||||
panel.Template.InlineTemplate = @<text>
|
||||
@Html.Partial(childModel.PartialViewName, childModel.GenericPanelBarModel)
|
||||
</text>;
|
||||
}));
|
||||
})
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue