Is it possible to have a TabStrip widget render content using a template?
The goal here is to have something of a client card. For each card I want a tab with the Name. The content should be based on a template. I want to create an event that would allow the user to add a new item to the model and have that reflected by the tab strip[New tab, with items content rendered using the template]
Sample Data:
The goal here is to have something of a client card. For each card I want a tab with the Name. The content should be based on a template. I want to create an event that would allow the user to add a new item to the model and have that reflected by the tab strip[New tab, with items content rendered using the template]
Sample Data:
[{ Name:
"Program 1"
, selectedClient:
null
, clients: clients},
{ Name:
"Program 2"
, selectedClient:
null
, clients: clients},
{ Name:
"Program 3"
, selectedClient:
null
, clients: clients}]
<div id=
"tabStrip"
data-role=
"tabstrip"
data-bind=
"source: myModel"
data-text-field=
"Name"
data-content-field=
"myTemplate"
>
</div>
<script type=
"text/x-kendo-template"
id=
"myTemplate"
>
<div>
<div class=
"window-row"
>
<div class=
"form-label"
>Client:</div>
<div id=
"clientDropDown"
data-role=
"combobox"
data-filter=
"contains"
data-bind=
"value: selectedClient, source: clients"
data-text-field=
"Name"
data-value-field=
"Id"
data-min-length=
"3"
/>
</div>
</div>
</script>