Help guide the NativeScript roadmap! Participate in the community survey. 📝

NativeScript & Vue.JS

RadListView Overview

Header and Footer are a special kind of elements that are displayed at the beginning and at the end of the scrollable data list. They are part of the core functionality of RadListView and are exposed through two special <v-template name="header"> and <v-template name="footer"> components (See v-template docs). This article explains how Header and Footer are defined on RadListViewComponent with Vue.

The following code snippet demonstrates a sample scenario in which a header and a footer are shown on a RadListView instance:

export default {
  template: `
      <RadListView ref="listView"
                   for="item in itemList">
        <v-template name="header">
          <Label text="List header"></Label>

          <StackLayout class="item" orientation="vertical" style="margin-top: 20">
            <Label :text="item.title">

        <v-template name="footer">
          <Label text="List footer"></Label>
  data () {
    return {
      itemList: [
        {title: 'Item 1'},
        {title: 'Item 2'},