|
3 | 3 | <Label text="Basic Drawer"></Label>
|
4 | 4 | </ActionBar>
|
5 | 5 |
|
6 |
| -<BottomSheet [(stepIndex)]="stepIndex" [steps]="[56, 156, 456]" scrollViewId="scrollView" backdropColor="#88000000"> |
| 6 | +<BottomSheet [(stepIndex)]="stepIndex" [steps]="[56, 156, 456]" backdropColor="#88000000"> |
7 | 7 | <StackLayout backgroundColor="red">
|
8 |
| - <Label text="This is the main content" /> |
| 8 | + <Label text="This is the main content"></Label> |
9 | 9 | </StackLayout>
|
10 |
| - <gridlayout bottomSheet backgroundColor="yellow" rows="56, 100, 300"> |
11 |
| - <stacklayout row="0" orientation="horizontal"> |
12 |
| - <button text="My Profile" class="button" (tap)="stepIndex = 0" /> |
13 |
| - <button text="Settings" class="button" (tap)="stepIndex = 1"/> |
14 |
| - <button text="Rate Us" class="button" (tap)="stepIndex = 2"/> |
15 |
| - <button text="Support" class="button" /> |
16 |
| - <button text="Contact" class="button" /> |
17 |
| - </stacklayout> |
18 |
| - <stacklayout row="1" orientation="horizontal"> |
19 |
| - <button text="My Profile" class="button" /> |
20 |
| - <button text="Settings" class="button" /> |
21 |
| - <button text="Rate Us" class="button" /> |
22 |
| - <button text="Support" class="button" /> |
23 |
| - <button text="Contact" class="button" /> |
24 |
| - </stacklayout> |
25 |
| - <ListView [items]="items" row="2" id="scrollView" colWidth="50%" rowHeight="100"> |
26 |
| - <v-template> |
27 |
| - <gridlayout rows="*, auto" [backgroundColor]="item.color" class="item"> |
28 |
| - <stacklayout row="1"> |
29 |
| - <label row="1" :text="item.name" class="title" /> |
30 |
| - <label row="1" :text="item.color" class="subtitle" /> |
31 |
| - </stacklayout> |
32 |
| - </gridlayout> |
33 |
| - </v-template> |
| 10 | + <GridLayout bottomSheet backgroundColor="yellow" rows="56, 100, 300"> |
| 11 | + <StackLayout row="0" orientation="horizontal"> |
| 12 | + <Button text="Open Step 0" class="Button" (tap)="setIndex(0)"></Button> |
| 13 | + <Button text="Open Step 1" class="Button" (tap)="setIndex(1)"></Button> |
| 14 | + <Button text="Open Step 2" class="Button" (tap)="setIndex(2)"></Button> |
| 15 | + </StackLayout> |
| 16 | + <StackLayout row="1" backgroundColor="orange"> |
| 17 | + <Label text="Second step section"></Label> |
| 18 | + </StackLayout> |
| 19 | + <ListView [items]="items" row="2" colWidth="50%" rowHeight="100"> |
| 20 | + <ng-template let-item="item" let-i="index"> |
| 21 | + <GridLayout rows="*, auto" class="item" [backgroundColor]="item.color"> |
| 22 | + <StackLayout row="1"> |
| 23 | + <Label row="1" [text]="item.name" class="title"></Label> |
| 24 | + <Label row="1" [text]="item.color" class="subtitle"></Label> |
| 25 | + </StackLayout> |
| 26 | + </GridLayout> |
| 27 | + </ng-template> |
34 | 28 | </ListView>
|
35 |
| - </gridlayout> |
| 29 | + </GridLayout> |
36 | 30 | </BottomSheet>
|
0 commit comments