Skip to content

Commit 33df615

Browse files
committed
docs: cleanup Label & use new screenshots/snippets
1 parent e7ecd7f commit 33df615

File tree

6 files changed

+76
-200
lines changed

6 files changed

+76
-200
lines changed

content/ui/activity-indicator.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
title: ActivityIndicator
33
description: UI component for signaling activity.
44
contributors:
5-
- rigor789
6-
- Ombuweb
5+
- rigor789
6+
- Ombuweb
77
---
88

99
`<ActivityIndicator>` is a UI component that shows a progress indicator signaling to the user of an operation running in the background.
1010

1111
<DeviceFrame type="ios">
12-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/ios-simulator103iPhone6/ActivityIndicator.png"/>
12+
<img src="../screenshots/ios/ActivityIndicator.png"/>
1313
</DeviceFrame>
1414
<DeviceFrame type="android">
15-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/android23/ActivityIndicator.png" />
15+
<img src="../screenshots/android/ActivityIndicator.png"/>
1616
</DeviceFrame>
1717

18+
<<< @/../examples/src/ui/ActivityIndicator/template.xml#example
19+
1820
## Examples
1921

2022
### Always busy ActivityIndicator

content/ui/button.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@ contributors:
1111
For more information about the available gestures, see [Gestures](/guide/ui/gestures).
1212

1313
<DeviceFrame type="ios">
14-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/ios-simulator103iPhone6/Button.png"/>
14+
<img src="../screenshots/ios/Button.png"/>
1515
</DeviceFrame>
1616
<DeviceFrame type="android">
17-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/android23/Button.png" />
17+
<img src="../screenshots/android/Button.png"/>
1818
</DeviceFrame>
1919

20-
```xml
21-
<Button text="Button" />
22-
```
20+
<<< @/../examples/src/ui/Button/template.xml#example
2321

2422
## Examples
2523

content/ui/datepicker.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ contributors:
1111
See also: [TimePicker](/ui/timepicker).
1212

1313
<DeviceFrame type="ios">
14-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/ios-simulator103iPhone6/DatePicker.png"/>
14+
<img src="../screenshots/ios/DatePicker.png"/>
1515
</DeviceFrame>
1616
<DeviceFrame type="android">
17-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/android23/DatePicker.png" />
17+
<img src="../screenshots/android/DatePicker.png"/>
1818
</DeviceFrame>
1919

20+
<<< @/../examples/src/ui/DatePicker/template.xml#example
21+
2022
```xml
2123
<DatePicker
2224
year="2023"

content/ui/htmlview.md

+4-13
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,14 @@ contributors:
1111
See also: [WebView](/ui/webview).
1212

1313
<DeviceFrame type="ios">
14-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/ios-simulator103iPhone6/HtmlView.png"/>
14+
<img src="../screenshots/ios/HtmlView.png"/>
1515
</DeviceFrame>
1616
<DeviceFrame type="android">
17-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/android23/HtmlView.png" />
17+
<img src="../screenshots/android/HtmlView.png"/>
1818
</DeviceFrame>
1919

20-
```xml
21-
<HtmlView html="{{ htmlString }}" />
22-
```
23-
24-
```html
25-
const htmlString = `
26-
<span>
27-
<h1><font color="blue">NativeScript HtmlView</font></h1>
28-
</span>
29-
`
30-
```
20+
<<< @/../examples/src/ui/HtmlView/template.xml#example
21+
<<< @/../examples/src/ui/HtmlView/template.ts#example{xml}
3122

3223
## Props
3324

content/ui/image.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ When working with images, consider following [the best practices](/performance.h
1313
::: -->
1414

1515
<DeviceFrame type="ios">
16-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/ios-simulator103iPhone6/Image.png"/>
16+
<img src="../screenshots/ios/Image.png"/>
1717
</DeviceFrame>
1818
<DeviceFrame type="android">
19-
<img src="https://raw.githubusercontent.com/nativescript-vue/nativescript-vue-ui-tests/master/screenshots/android23/Image.png" />
19+
<img src="../screenshots/android/Image.png"/>
2020
</DeviceFrame>
2121

22+
<<< @/../examples/src/ui/Image/template.xml#example
23+
2224
## Examples
2325

2426
### Displaying images from App_Resources

0 commit comments

Comments
 (0)