The Data Moving Plug-In offers Html extensions to render enhanced knockout.js control flow operators: if, ifnot, with, and foreach. These operators have been enhanced as follows:
@ch._with0(m => m.CurrentDetail,
@<text>
<p>
<span class='ui-widget-header'>@item.LabelFor(m => m.Name)
</span>
:
@item.TypedEditDisplayFor(m => m.Name, simpleClick: true)
@item.ValidationMessageFor(m => m.Name, "*")
</p>
<p>
<span class='ui-widget-header'>@item.LabelFor(m => m.Surname)
</span>
:
@item.TypedEditDisplayFor(m => m.Surname, simpleClick: true)
@item.ValidationMessageFor(m => m.Surname, "*")
</p>
<p>
<span class='ui-widget-header'>@item.LabelFor(m => m.EMail)
</span>
:
@item.TypedEditDisplayFor(m => m.EMail, simpleClick: true)
@item.ValidationMessageFor(m => m.EMail, "*")
</p>
<p>
<span class='ui-widget-header'>@item.LabelFor(m => m.Address)
</span>
:
@item.TypedEditDisplayFor(m => m.Address, simpleClick: true)
@item.ValidationMessageFor(m => m.Address, "*")
</p>
<p>
<span class='ui-widget-header'>
@item.LabelFor(m => m.CanBeTeamLeader)
</span>
:
@item.CheckBoxFor(m => m.CanBeTeamLeader)
</p>
</text>
, ExternalContainerType.koComment,
forceHtmlRefresh: true, isDetail: true)