This is a migrated thread and some comments may be shown as answers.

Grouped listview defining header template in the markup

1 Answer 152 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Jordan
Top achievements
Rank 1
Jordan asked on 29 Jun 2012, 04:11 PM
Is there a way to set the header template for a grouped listview in the HTML markup similar to the attempt below, which does not work for me?

<ul data-role="listview" data-style="inset" data-type="group" data-auto-bind="false" data-source="firmDataSource" data-template="firmTemplate" header-template="<h2>Letter ${value}</h2>">
</ul>

I have seen examples where the header template can be defined in javascript, but have not seen an example of doing it this way.








1 Answer, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 26 Jul 2013, 02:28 PM
Old question but came across it while searching...
The answer is to specify the header template using the attribute "data-header-template".
Tags
ListView (Mobile)
Asked by
Jordan
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Share this question
or