Skip to content

Commit 6437479

Browse files
committed
add links to others docs versions
1 parent 89a040d commit 6437479

File tree

2 files changed

+36
-10
lines changed

2 files changed

+36
-10
lines changed

.vitepress/config.mts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const links = {
66
"https://stackblitz.com/fork/github/nativescript-vue/nativescript-vue/tree/main/packages/stackblitz-template?file=src%2Fcomponents%2FHome.vue&title=NativeScript%20Starter%20Vue3",
77
editLinkPattern:
88
"https://github.com/nativescript-vue/nativescript-vue.org/blob/v3/content/:path",
9+
v2Docs: "https://v2.nativescript-vue.org/",
10+
v1Docs: "https://v1-3-1.nativescript-vue.org/",
11+
github: "https://github.com/nativescript-vue/nativescript-vue",
912
};
1013

1114
// https://vitepress.dev/reference/site-config
@@ -26,11 +29,24 @@ export default defineConfig({
2629
// https://vitepress.dev/reference/default-theme-config
2730
nav: [
2831
{ text: "Home", link: "/" },
29-
{ text: "Get Started", link: "/docs/getting-started/installation" },
32+
{ text: "Docs", link: "/docs/introduction" },
3033
{
3134
text: "Playground",
3235
link: links.playground,
3336
},
37+
{
38+
text: "v3",
39+
items: [
40+
{ text: "Release Notes", link: `${links.github}/releases` },
41+
{
42+
text: "Versions",
43+
items: [
44+
{ text: "v2", link: links.v2Docs },
45+
{ text: "v1.3.1", link: links.v1Docs },
46+
],
47+
},
48+
],
49+
},
3450
],
3551

3652
sidebar: [
@@ -108,7 +124,7 @@ export default defineConfig({
108124
{ icon: "discord", link: "https://nativescript.org/discord" },
109125
{
110126
icon: "github",
111-
link: "https://github.com/nativescript-vue/nativescript-vue",
127+
link: links.github,
112128
},
113129
],
114130

content/docs/elements/components/list-view.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,15 @@ onItemTap(event) {
7979

8080
## ListView Props
8181

82-
| Name | Type | Description |
83-
| ---------------------- | ------------------------------------------------------- | ----------------------------------------------------------------- |
84-
| `items` | `Array<any>`, `Ref<Array<any>>`, `ObservableArray<any>` | An array of items to be shown in the `<ListView>`.<br/> |
85-
| `itemTemplateSelector` | `function(data:ListItem)` | A function to be called when selecting the template for the item. |
86-
| `separatorColor` | `Color` | Sets the separator line color. Set to `transparent` to remove it. |
82+
| Name | Type | Description |
83+
| ----------------------- | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
84+
| `items` | `Array<any>`, `Ref<Array<any>>`, `ObservableArray<any>` | An array of items to be shown in the `<ListView>`.<br/> |
85+
| `itemTemplateSelector` | `function(data:ListItem)` | A function to be called when selecting the template for the item. |
86+
| `separatorColor` | `Color` | Sets the separator line color. Set to `transparent` to remove it. |
87+
| `rowHeight` | `nubmer` | Gets or sets the row height of the ListView. Useful when your items have a fixed height, as the required calculations are greatly simplified and the rendering can be faster. |
88+
| `iosEstimatedRowHeight` | `nubmer`, `string` | Gets or sets the estimated height of rows in the ListView. Default value: 44px. |
89+
90+
See the full documentation for [NativeScript ListView props.](https://docs.nativescript.org/ui/list-view#props)
8791

8892
## Template Scoped Slots
8993

@@ -97,9 +101,15 @@ The template receives a `ListItem<T>` type object that is composed of the follow
97101

98102
## Events
99103

100-
| Name | Description |
101-
| --------- | ------------------------------------------------------------------------------------------------ |
102-
| `itemTap` | Emitted when an item in the `<ListView>` is tapped. To access the tapped item, use `event.item`. |
104+
| Name | Description |
105+
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
106+
| `itemTap` | Emitted when an item in the `ListView` is tapped. To access the tapped item, use `event.item`. |
107+
| `itemLoading` | Emitted when the ListView is loading/recycling an item. args.view is set if the `ListView` is recycling an item, otherwise it's undefined. |
108+
| `loadMoreItems` | Emitted when the user reaches the end of the `ListView`. Useful for loading additional items (ie. infinite scroll). |
109+
| `itemTap` | Emitted when an item in the `<ListView>` is tapped. To access the tapped item, use `event.item`. |
110+
| `itemTap` | Emitted when an item in the `<ListView>` is tapped. To access the tapped item, use `event.item`. |
111+
112+
See the full documentation for [NativeScript ListView events.](https://docs.nativescript.org/ui/list-view#events)
103113

104114
## Complete documentation
105115

0 commit comments

Comments
 (0)