Skip to content

Commit e17ab74

Browse files
committed
remove unused translation, add docs for button, label, image
1 parent 5bf2894 commit e17ab74

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+48
-495
lines changed

build/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Metalsmith(cwd)
9999
})
100100
.use(locales({
101101
defaultLocale: 'en',
102-
locales: ['en', 'hu']
102+
locales: ['en']
103103
}))
104104
.use(order())
105105
.use(categories())
+14-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
---
22
title: Button
3+
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_button_.button
34
---
45

5-
TODO
6+
The Button component is used to display a button.
7+
8+
## Props
9+
10+
| name | type | description |
11+
|------|------|-------------|
12+
| `text` | `String` | The text of the button.
13+
14+
## Events
15+
16+
| name | description |
17+
|------|-------------|
18+
| `tap`| Emitted when the button is pressed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
title: Image
3+
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_image_.image
34
---
45

5-
TODO
6+
The Image component is used to display images.
7+
8+
## Props
9+
10+
| name | type | description |
11+
|------|------|-------------|
12+
| `src` | `String` | The source of the image, can be an URL or a path.
+25-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
---
22
title: Label
3+
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_label_.label
34
---
45

5-
TODO
6+
The Label component is used to display text.
7+
8+
**Note**: It is named the same as the `<label>` HTML tag, but it doesn't have the same meaning. (TODO: reword)
9+
10+
## FormattedString
11+
12+
If you need to style certain parts of the text differently, you can use a combination of a FormattedString and Span elements.
13+
14+
Example:
15+
```html
16+
<Label>
17+
<FormattedString>
18+
<Span text="This text has a"/>
19+
<Span text="red " style="color: red;"/>
20+
<Span text="piece of text."/>
21+
</FormattedString>
22+
</Label>
23+
```
24+
25+
## Props
26+
27+
| name | type | description |
28+
|------|------|-------------|
29+
| `text` | `String` | The text of the label

content/docs/hu/1-quick-start.md

-73
This file was deleted.

content/docs/hu/10-articles.md

-9
This file was deleted.

content/docs/hu/2-about-nativescript-vue.md

-45
This file was deleted.

content/docs/hu/3-installing-nativescript.md

-11
This file was deleted.

content/docs/hu/4-installation-nativescript-vue.md

-10
This file was deleted.

content/docs/hu/5-troubleshooting.md

-6
This file was deleted.

content/docs/hu/6-templates.md

-69
This file was deleted.

content/docs/hu/7-using-nativescript-plugins.md

-29
This file was deleted.

0 commit comments

Comments
 (0)