Pending Review
Last Updated: 13 Jul 2017 09:09 by ADMIN
Imported User
Created on: 25 Jun 2014 13:15
Category: Templates
Type: Feature Request
4
Support templates in PanelBar
Add support for templating panelbar items (separate templates for first (header) and second (items) level). 
3 comments
Sam
Posted on: 13 Jul 2017 09:08
I would like to be able to acheive the following;

<pre> 
<div kendo-panel-bar="$ctrl.panel" k-options="$ctrl.panelOptions">
  <div k-header-template>
    {{dataItem.name}}
  </div>
  <div k-template>
    <div style="padding:10px;">
      {{dataItem.id}}
    </div>
  </div>
</div>
</pre> 
Currently, only k-template is supported and it renders the entire template into the header.

This in my opinion makes the panel bar almost useless as you cannot render the content you wish within each panel.
Sam
Posted on: 13 Jul 2017 09:07
I would like to be able to acheive the following;

<code>
<div kendo-panel-bar="$ctrl.panel" k-options="$ctrl.panelOptions">
  <div k-header-template>
    {{dataItem.name}}
  </div>
  <div k-template>
    <div style="padding:10px;">
      {{dataItem.id}}
    </div>
  </div>
</div>
</code>
Currently, only k-template is supported and it renders the entire template into the header.

This in my opinion makes the panel bar almost useless as you cannot render the content you wish within each panel.
Sam
Posted on: 13 Jul 2017 09:05
I would like to be able to acheive the following;

```
<div kendo-panel-bar="$ctrl.panel" k-options="$ctrl.panelOptions">
  <div k-header-template>
    {{dataItem.name}}
  </div>
  <div k-template>
    <div style="padding:10px;">
      {{dataItem.id}}
    </div>
  </div>
</div>
```

Currently, only k-template is supported and it renders the entire template into the header.

This in my opinion makes the panel bar almost useless as you cannot render the content you wish within each panel.