Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app-with-list-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,24 @@ new Vue({
<stack-layout>
<button class="btn btn-primary" :text="subreddit" @tap="chooseSubreddit"></button>
<list-view :items="items" class="list-group" :templateSelector="templateSelector" @itemTap="onItemTap">
<template scope="item">
<v-template scope="item">
<stack-layout orientation="horizontal" class="list-group-item">
<image :src="item.image" class="thumb"></image>
<stack-layout>
<label class="list-group-item-heading" :text="item.title"></label>
<label class="list-group-item-text" text="The rest of the content" textWrap="true"></label>
</stack-layout>
</stack-layout>
</template>
<template name="active" scope="item">
</v-template>
<v-template name="active" scope="item">
<stack-layout orientation="horizontal" class="list-group-item active">
<image :src="item.image" class="thumb"></image>
<stack-layout>
<label class="list-group-item-heading" :text="item.title"></label>
<label class="list-group-item-text" text="The rest of the content" textWrap="true"></label>
</stack-layout>
</stack-layout>
</template>
</v-template>
</list-view>
</stack-layout>
</page>
Expand Down