mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
fix wording
This commit is contained in:
@ -53,7 +53,7 @@ The icon can only be set in Android platform. It is hidden by default, but you e
|
|||||||
</Page>
|
</Page>
|
||||||
```
|
```
|
||||||
|
|
||||||
The position option is platform specific. The available values are as follows:
|
The position option is platform-specific. The available values are as follows:
|
||||||
* **Android** - `actionBar`, `actionBarIfRoom` and `popup`. The default is `actionBar`.
|
* **Android** - `actionBar`, `actionBarIfRoom` and `popup`. The default is `actionBar`.
|
||||||
* **iOS** - `left` and `right`. The default is `left`.
|
* **iOS** - `left` and `right`. The default is `left`.
|
||||||
|
|
||||||
@ -77,32 +77,31 @@ The position option is platform specific. The available values are as follows:
|
|||||||
Set `ios.systemIcon` to a number representing the iOS system item to be displayed.
|
Set `ios.systemIcon` to a number representing the iOS system item to be displayed.
|
||||||
Use this property instead of `ActionItem.icon` if you want to diplsay a built-in iOS system icon.
|
Use this property instead of `ActionItem.icon` if you want to diplsay a built-in iOS system icon.
|
||||||
Note: systemIcon is not supported on NavigationButton in iOS
|
Note: systemIcon is not supported on NavigationButton in iOS
|
||||||
The value should be a number from the `UIBarButtonSystemItem` enumeration
|
The value should be a number from the [UIBarButtonSystemItem](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/#//apple_ref/c/tdef/UIBarButtonSystemItem) enumeration:
|
||||||
(https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/#//apple_ref/c/tdef/UIBarButtonSystemItem)
|
0: `Done`
|
||||||
0: Done
|
1: `Cancel`
|
||||||
1: Cancel
|
2: `Edit`
|
||||||
2: Edit
|
3: `Save`
|
||||||
3: Save
|
4: `Add`
|
||||||
4: Add
|
5: `FlexibleSpace`
|
||||||
5: FlexibleSpace
|
6: `FixedSpace`
|
||||||
6: FixedSpace
|
7: `Compose`
|
||||||
7: Compose
|
8: `Reply`
|
||||||
8: Reply
|
9: `Action`
|
||||||
9: Action
|
10: `Organize`
|
||||||
10: Organize
|
11: `Bookmarks`
|
||||||
11: Bookmarks
|
12: `Search`
|
||||||
12: Search
|
13: `Refresh`
|
||||||
13: Refresh
|
14: `Stop`
|
||||||
14: Stop
|
15: `Camera`
|
||||||
15: Camera
|
16: `Trash`
|
||||||
16: Trash
|
17: `Play`
|
||||||
17: Play
|
18: `Pause`
|
||||||
18: Pause
|
19: `Rewind`
|
||||||
19: Rewind
|
20: `FastForward`
|
||||||
20: FastForward
|
21: `Undo`
|
||||||
21: Undo
|
22: `Redo`
|
||||||
22: Redo
|
23: `PageCurl`
|
||||||
23: PageCurl
|
|
||||||
|
|
||||||
### Android
|
### Android
|
||||||
Set `android.systemIcon` the name of the system drawable resource to be displayed.
|
Set `android.systemIcon` the name of the system drawable resource to be displayed.
|
||||||
|
@ -4,7 +4,7 @@ title: "border"
|
|||||||
description: "Examples for using Border"
|
description: "Examples for using Border"
|
||||||
---
|
---
|
||||||
# Border
|
# Border
|
||||||
Using borders requires the "ui/border" module.
|
Using borders requires the Border module.
|
||||||
<snippet id='border-require'/>
|
<snippet id='border-require'/>
|
||||||
|
|
||||||
### Declaring a Border.
|
### Declaring a Border.
|
||||||
|
@ -22,17 +22,17 @@ Binding the image source property to a view-model property.
|
|||||||
</StackLayout>
|
</StackLayout>
|
||||||
</Page>
|
</Page>
|
||||||
```
|
```
|
||||||
### How to create an image and set its source.
|
### Creating an image and setting its source
|
||||||
<snippet id='img-create'/>
|
<snippet id='img-create'/>
|
||||||
|
|
||||||
### How to create an image and set its src.
|
### Creating an image and setting its src
|
||||||
<snippet id='img-create-src'/>
|
<snippet id='img-create-src'/>
|
||||||
|
|
||||||
### How to create an image and set its src to file within the application.
|
### Creating an image and setting its src to a file within the application
|
||||||
<snippet id='img-create-local'/>
|
<snippet id='img-create-local'/>
|
||||||
|
|
||||||
### How to create an image and set its src to Data URI.
|
### Creating an image and setting its src to Data URI
|
||||||
<snippet id='img-create-datauri'/>
|
<snippet id='img-create-datauri'/>
|
||||||
|
|
||||||
### How to set image stretching.
|
### Setting image stretching
|
||||||
<snippet id='img-set-stretch'/>
|
<snippet id='img-set-stretch'/>
|
||||||
|
@ -13,20 +13,20 @@ Using a label requires the Label module.
|
|||||||
{%raw%}<Label text="{{ title }}" />{%endraw%}
|
{%raw%}<Label text="{{ title }}" />{%endraw%}
|
||||||
</Page>
|
</Page>
|
||||||
```
|
```
|
||||||
### How to set label text content
|
### Setting the label text content
|
||||||
<snippet id='label-settext'/>
|
<snippet id='label-settext'/>
|
||||||
|
|
||||||
### How to turn on text wrapping for a label
|
### Turning on text wrapping for a label
|
||||||
<snippet id='label-textwrap'/>
|
<snippet id='label-textwrap'/>
|
||||||
|
|
||||||
### How to style a label via css class
|
### Styling a label via css class
|
||||||
<snippet id='label-cssclass'/>
|
<snippet id='label-cssclass'/>
|
||||||
|
|
||||||
### How to style a label via css type
|
### Styling a label via css type
|
||||||
<snippet id='label-cssclass-type'/>
|
<snippet id='label-cssclass-type'/>
|
||||||
|
|
||||||
### How to style a label via css control identifier
|
### Styling a label via css control identifier
|
||||||
<snippet id='label-css-identifier'/>
|
<snippet id='label-css-identifier'/>
|
||||||
|
|
||||||
### How to bind text property of a label to an observable model
|
### Binding text property of a label to an observable model
|
||||||
<snippet id='label-observable'/>
|
<snippet id='label-observable'/>
|
||||||
|
@ -6,7 +6,7 @@ description: "Examples for using scroll-view"
|
|||||||
# ScrollView
|
# ScrollView
|
||||||
Using a ScrollView requires the ScrollView module.
|
Using a ScrollView requires the ScrollView module.
|
||||||
<snippet id='article-require-scrollview-module'/>
|
<snippet id='article-require-scrollview-module'/>
|
||||||
### Declaring the ScrollView.
|
### Declaring the ScrollView
|
||||||
``` XML
|
``` XML
|
||||||
<Page>
|
<Page>
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
|
Reference in New Issue
Block a user