1
1
<template >
2
- <GridLayout id =" test1" rows =" auto auto" height = " 300 " backgroundColor =" yellow" >
2
+ <GridLayout id =" test1" rows =" auto auto" backgroundColor =" yellow" >
3
3
<!-- 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 " >
5
5
<Button @tap =" toggleExtraContent" text =" Toggle extra content" ></Button >
6
6
<Button @tap =" openAnotherInner" text =" Open second" ></Button >
7
7
<Button id =" innerButton" @tap =" onButtonTap" text =" close with result" ></Button >
8
8
</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 >
12
25
</GridLayout >
13
26
<!-- </MDCardView> -->
14
27
</template >
@@ -22,7 +35,8 @@ import BottomSheetInnerKeyboardVue from './BottomSheetInnerKeyboard.vue';
22
35
export default Vue .extend ({
23
36
data() {
24
37
return {
25
- showExtraContent: false
38
+ showExtraContent: false ,
39
+ items:[{},{},{},{},{},{}]
26
40
};
27
41
},
28
42
methods: {
0 commit comments