Skip to content

Commit c7e85c6

Browse files
committed
test: demo update
1 parent 6966149 commit c7e85c6

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

demo-vue/app/examples/BottomSheetInner.vue

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
<template>
2-
<GridLayout id="test1" rows="auto auto" height="300" backgroundColor="yellow">
2+
<GridLayout id="test1" rows="auto auto" backgroundColor="yellow">
33
<!-- highlighted in red to demonstrate movement -->
4-
<Stacklayout id="test2" row="0" backgroundColor="red" verticalAlignment="top">
4+
<Stacklayout id="test2" row="0" backgroundColor="red" verticalAlignment="top" marginLeft="10" marginRight="10" >
55
<Button @tap="toggleExtraContent" text="Toggle extra content"></Button>
66
<Button @tap="openAnotherInner" text="Open second"></Button>
77
<Button id="innerButton" @tap="onButtonTap" text="close with result"></Button>
88
</Stacklayout>
9-
<GridLayout id="test4" row="1" v-if="showExtraContent">
10-
<Label text="Extra content"></Label>
11-
</GridLayout>
9+
<StackLayout style="background-color: red" row="1">
10+
<StackLayout orientation="horizontal">
11+
<MDTextField hint="Edit text to filter..." style="font-size: 16;"/>
12+
<MDActivityIndicator *ngIf="processing" width="50" height="50"/>
13+
</StackLayout>
14+
<ListView height="150" :items="items">
15+
<v-template let-item="item" let-odd="odd" let-even="even" >
16+
<GridLayout height="64" backgroundColor="green" >
17+
<Image horizontalAlignment="left" width="64"/>
18+
<Label horizontalAlignment="center"/>
19+
<Label horizontalAlignment="right"/>
20+
</GridLayout>
21+
</v-template>
22+
</ListView>
23+
<Button text="Cancel" horizontalAlignment="center"/>
24+
</StackLayout>
1225
</GridLayout>
1326
<!-- </MDCardView> -->
1427
</template>
@@ -22,7 +35,8 @@ import BottomSheetInnerKeyboardVue from './BottomSheetInnerKeyboard.vue';
2235
export default Vue.extend({
2336
data() {
2437
return {
25-
showExtraContent: false
38+
showExtraContent: false,
39+
items:[{},{},{},{},{},{}]
2640
};
2741
},
2842
methods: {

0 commit comments

Comments
 (0)