Skip to content

Commit fabc1dd

Browse files
committed
Bring back ListView and fix remaining demo bugs
1 parent df8afc8 commit fabc1dd

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

demo-snippets/vue3/BottomSheetInner.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
<MDTextField hint="Edit text to filter..." style="font-size: 16" />
1313
<MDActivityIndicator *ngIf="processing" width="50" height="50" />
1414
</StackLayout>
15+
<ListView height="150" :items="items" id="scrollView">
16+
<GridLayout height="64" backgroundColor="green">
17+
<Image horizontalAlignment="left" width="64" />
18+
<Label horizontalAlignment="center" />
19+
<Label horizontalAlignment="right" />
20+
</GridLayout>
21+
</ListView>
1522
<Button text="Cancel" horizontalAlignment="center" />
1623
</StackLayout>
1724
</GridLayout>
@@ -21,8 +28,9 @@
2128
import BottomSheetInnerKeyboardVue from './BottomSheetInnerKeyboard.vue';
2229
import { useBottomSheet } from "@nativescript-community/ui-material-bottomsheet/vue3";
2330
const { showBottomSheet, closeBottomSheet } = useBottomSheet()
31+
import { ref } from 'nativescript-vue';
2432
25-
const showExtraContent = false;
33+
const showExtraContent = ref(false);
2634
const items = [{}, {}, {}, {}, {}, {}]
2735
2836
function onButtonTap(event) {
@@ -34,7 +42,7 @@ function onShownInBottomSheet(args) {
3442
}
3543
3644
function toggleExtraContent() {
37-
showExtraContent = !showExtraContent;
45+
showExtraContent.value = !showExtraContent.value;
3846
}
3947
4048
function openAnotherInner() {

demo-snippets/vue3/BottomSheetInnerKeyboard.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<Button id="innerButtonK" @tap="onButtonTap" text="close with result k"></Button>
55
</Stacklayout>
66
<MDTextField margin="10" variant="filled" hint="Working TextView hint 🤪" />
7-
<PreviousNextView />
87
</StackLayout>
98
</template>
109

0 commit comments

Comments
 (0)