Grouped listview defining header template in the markup

2 posts, 0 answers
  1. Jordan
    Jordan avatar
    1 posts
    Member since:
    Jun 2012

    Posted 29 Jun 2012 Link to this post

    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>">

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

  2. Richard
    Richard avatar
    2 posts
    Member since:
    Mar 2011

    Posted 26 Jul 2013 Link to this post

    Old question but came across it while searching...
    The answer is to specify the header template using the attribute "data-header-template".
Back to Top