Content-Length: 1120973 | pFad | http://github.com/NativeScript/docs/commit/a49c1d8b8883d76ee05d2d798b304c96a410375d

F7 chore: cleanup · NativeScript/docs@a49c1d8 · GitHub
Skip to content

Commit a49c1d8

Browse files
committed
chore: cleanup
1 parent 6a3a66d commit a49c1d8

20 files changed

+44
-38
lines changed

Diff for: content/tutorials/build-a-master-detail-app-with-plain-javascript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ Next, let's add the tap event to the ListView items. Open `home-page.xml` and ad
522522

523523
### Access navigation props
524524

525-
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed in `id` via the page's `navigationContext`. We will first get the `navigationContext` on our details page and pass it along to our `DetailsViewModel`. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `details-page.js` and add the following:
525+
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed-in `id` via the page's `navigationContext`. We will first get the `navigationContext` on our details page and pass it along to our `DetailsViewModel`. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `details-page.js` and add the following:
526526

527527
```javascript{9}
528528
// app/details/details-page.js
@@ -547,7 +547,7 @@ import { FlickService } from '../services/flick.service'
547547
export class DetailsViewModel extends Observable {
548548
#flick
549549

550-
// the passed in context object during the navigation will be here
550+
// the passed-in context object during the navigation will be here
551551
constructor(_context) {
552552
super()
553553

Diff for: content/tutorials/build-a-master-detail-app-with-plain-typescript.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ Next, let's add the tap event to the ListView items. Open `home-page.xml` and ad
550550

551551
### Access navigation props
552552

553-
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed in `id` via the page's `navigationContext`. We will first get the `navigationContext` on our details page and pass it along to our `DetailsViewModel`. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `details-page.ts` and add the following:
553+
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed-in `id` via the page's `navigationContext`. We will first get the `navigationContext` on our details page and pass it along to our `DetailsViewModel`. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `details-page.ts` and add the following:
554554

555555
```typescript{9}
556556
// app/details/details-page.ts
@@ -578,7 +578,7 @@ import { FlickModel } from '../models'
578578
export class DetailsViewModel extends Observable {
579579
private _flick: FlickModel
580580

581-
// the passed in context object during the navigation will be here
581+
// the passed-in context object during the navigation will be here
582582
constructor(private _context: { flickId: number }) {
583583
super()
584584

Diff for: content/tutorials/build-a-master-detail-app-with-react.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export function HomeScreen({ navigation }: HomeScreenProps) {
732732

733733
### Access navigation props
734734

735-
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed in `id` via the `route.params` property. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `DetailsScreen.tsx` and add the following:
735+
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed-in `id` via the `route.params` property. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `DetailsScreen.tsx` and add the following:
736736

737737
```tsx{9,17,19}
738738
// src/components/DetailsScreen.tsx

Diff for: content/tutorials/build-a-master-detail-app-with-svelte.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ Next, let's add the tap event to the ListView items. Open `Home.svelte` and add
546546

547547
### Access navigation props
548548

549-
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed in `flickId` by declaring and exporting a variable with the same name in the details component. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `Details.svelte` and add the following:
549+
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details page. We can access the passed-in `flickId` by declaring and exporting a variable with the same name in the details component. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `Details.svelte` and add the following:
550550

551551
```xml{7}
552552
<!-- app/pages/Details.svelte -->

Diff for: content/tutorials/build-a-master-detail-app-with-vue.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ Next, let's add the tap event to the ListView items. Open `Home.vue` and add the
612612

613613
### Access navigation props
614614

615-
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details component. We can use the `props` property to get the passed in `id`. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `Details.vue` and add the following:
615+
We passed in the `id` of the flick card the user tapped on in the previous section as we navigate to the details component. We can use the `props` property to get the passed-in `id`. We can then use the `id` to get the selected flick information to be displayed in our details component's template. Open `Details.vue` and add the following:
616616

617617
```vue{10,13,17,20-22}
618618
<!-- app/components/Details.vue -->

Diff for: content/ui/action-bar.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ If you need to place a custom button on the left side of the `<ActionBar>` (e.g.
348348
On Android, you can't add text inside the navigation button.
349349
You can use the icon property to set an image (e.g., `~/images/nav-image.png` or `res:\\ic_nav`).
350350
You can use `android.systemIcon` to set one of the system icons available in Android.
351-
In this case, there is no default behaviour for NavigationButton tap event, and we should set the callback function, which will be executed.
351+
In this case, there is no default behavior for NavigationButton tap event, instead the passed-in callback will be called.
352+
352353
:::
353354

354355
## Setting an app icon for Android in ActionBar
@@ -415,7 +416,7 @@ In this case, there is no default behaviour for NavigationButton tap event, and
415416

416417
## Styling ActionBar
417418

418-
To style the `<ActionBar>`, you can use only `background-color` and `color` properties. Alternatively, you can use [@nativescript/tailwind](https://docs.nativescript.org/plugins/tailwindcss.html) and use the default styles for each different theme. The icon property of `ActionItem` can use Icon Fonts with the `font://` prefix. By setting up this prefix, a new image will be generated, which will be set as an `<ActionItem>`'s icon resource. While using this functionality, we need to specify the font-size, which will calculate the size of the generated image base on the device's dpi.
419+
To style the `<ActionBar>`, you can use only `background-color` and `color` properties. Alternatively, you can use [@nativescript/tailwind](https://docs.nativescript.org/plugins/tailwindcss.html) and use the default styles for each different theme. The icon property of `ActionItem` can use Icon Fonts with the `font://` prefix. By setting up this prefix, a new image will be generated, and set as the `<ActionItem>`'s icon resource. While using this functionality, we need to specify the font-size, to calculate the size of the generated image base on the device's dpi.
419420

420421
<!-- //github.com/ flavor angular
421422
@@ -531,7 +532,7 @@ To remove this styling from your app, you can set the `flat` property to `true`.
531532
actionBar.title = 'About'
532533
```
533534

534-
Gets or sets the action bar title.
535+
Gets or sets the ActionBar title.
535536

536537
---
537538

@@ -590,7 +591,7 @@ Gets the collection of action items.
590591
actionBar.iosIconRenderingMode
591592
```
592593

593-
Gets or set the [UIImage.RenderingMode](https://developer.apple.com/documentation/uikit/uiimage/renderingmode) of the action bar icons in iOS. Defaults to `alwaysOriginal`. Available values:
594+
Gets or set the [UIImage.RenderingMode](https://developer.apple.com/documentation/uikit/uiimage/renderingmode) of the ActionBar icons in iOS. Defaults to `alwaysOriginal`. Available values:
594595

595596
- `automatic`
596597
- `alwaysTemplate`
@@ -636,7 +637,7 @@ Sets the position of the item. Avaibable values: `left` or `right`. Defaults to
636637
<ActionItem android.position="popup">
637638
```
638639

639-
Sets the position of the item. Avaibable values: ``enum`: `actionBar`, `popup`, `actionBarIfRoom`. Defaults to `actionBar`.
640+
Sets the position of the item. Avaibable values: `ActionBar`, `popup`, `actionBarIfRoom`. Defaults to `actionBar`.
640641

641642
---
642643

@@ -660,13 +661,17 @@ Sets a path to a resource icon ( see the [list of Android system drawables](http
660661

661662
---
662663

664+
<!-- textlint-disable terminology -->
665+
663666
### actionBar
664667

668+
<!-- textlint-enable-->
669+
665670
```ts
666671
actionBar: ActionBar = actionItem.actionBar
667672
```
668673

669-
Gets the action bar that contains the action item.
674+
Gets the ActionBar that contains the action item.
670675

671676
---
672677

Diff for: content/ui/datepicker.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ Gets or sets the year.
274274
datePicker.iosPreferredDatePickerStyle = 2
275275
```
276276

277-
Gets or set the UIDatePickerStyle of the date picker in iOS `13.4+`. Defaults to `0`.
277+
Gets or set the UIDatePickerStyle of the DatePicker in iOS `13.4+`. Defaults to `0`.
278278
Valid values are numbers:
279279

280-
- `0 = automatic`: system picks the concrete style based on the current platform and date picker mode.
281-
- `1 = wheels`: the date picker displays as a wheel picker.
282-
- `2 = compact` : the date picker displays as a label that when tapped displays a calendar-style editor.
283-
- `3 = inline` : the date pickers displays as an inline, editable field
280+
- `0 = automatic`: system picks the concrete style based on the current platform and DatePicker mode.
281+
- `1 = wheels`: the DatePicker displays as a wheel picker.
282+
- `2 = compact` : the DatePicker displays as a label that when tapped displays a calendar-style editor.
283+
- `3 = inline` : the DatePickers displays as an inline, editable field
284284

285285
---
286286

Diff for: content/ui/flexbox-layout.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: FlexBoxLayout
33
---
44

5-
`<FlexboxLayout>` is a layout container that provides a non-exact implementation of the [CSS Flexbox layout](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox). This layout lets you arrange child components both horizontally and vertically.
5+
`<FlexboxLayout>` is a layout container that provides a non-exact implementation of the [CSS FlexboxLayout](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox). This layout lets you arrange child components both horizontally and vertically.
66

77
## Placing child elements horizontally
88

Diff for: content/ui/grid-layout.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ You can set a fixed size for column width and row height or you can create them
1616

1717
See [References](#references) for more information.
1818

19-
### Grid layout with fixed sizing
19+
### GridLayout with fixed sizing
2020

2121
The following example creates a simple 2-by-2 grid with fixed column widths and row heights.
2222

@@ -31,7 +31,7 @@ The following example creates a simple 2-by-2 grid with fixed column widths and
3131

3232
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript.org/layouts/grid_layout.svg" />
3333

34-
### Grid layout with star sizing
34+
### GridLayout with star sizing
3535

3636
The following example creates a grid with responsive design, where space is allotted proportionally to child elements.
3737

@@ -46,7 +46,7 @@ The following example creates a grid with responsive design, where space is allo
4646

4747
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript.org/layouts/grid_layout_star_sizing.svg" />
4848

49-
### Grid layout with fixed and auto sizing
49+
### GridLayout with fixed and auto sizing
5050

5151
The following example create a grid with one auto-sized column and one column with fixed size. Rows have a fixed height.
5252

@@ -61,7 +61,7 @@ The following example create a grid with one auto-sized column and one column wi
6161

6262
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript.org/layouts/grid_layout_fixed_auto.svg" />
6363

64-
### Grid layout with mixed sizing and merged cells
64+
### GridLayout with mixed sizing and merged cells
6565

6666
The following example creates a complex grid with responsive design, mixed width and height settings, and some merged cells.
6767

Diff for: content/ui/listpicker.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class HelloWorldModel extends Observable {
123123
}
124124
```
125125

126-
Gets or sets the specified items array as options in the list picker.
126+
Gets or sets the specified items array as options in the ListPicker.
127127

128128
---
129129

Diff for: content/ui/page.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Developers coming from a web background would usually reach for the `mounted` li
211211

212212
## Props
213213

214-
### actionBar
214+
### ActionBar
215215

216216
```ts
217217
actionBar: ActionBar = page.actionBar

Diff for: content/ui/placeholder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Placeholder
33
---
44

5-
`<Placeholder>` allows adding native views directly in your markup without creating a full [View](#) wrapper for it. When NativeScript is constructing the UI and encounters a placeholder element, it emits a `creatingView` event, allowing you to pass in any native view to be rendered by assigning it to the `args.view` parameter.
5+
`<Placeholder>` allows adding native views directly in your markup without creating a full [View](#) wrapper for it. When NativeScript is constructing the UI and encounters a Placeholder element, it emits a `creatingView` event, allowing you to pass in any native view to be rendered by assigning it to the `args.view` parameter.
66

77
### Creating a Simple Placeholder
88

Diff for: content/ui/root-layout.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ title: RootLayout
55
<!-- TODO: Add Preview -->
66
<!-- TODO: Add flavors tabs -->
77

8-
`<RootLayout>` is a layout container designed to be used as the primary root layout container for your app with a built-in API to easily control dynamic view layers. It extends a [GridLayout]() so has all the features of a grid but enhanced with additional apis.
8+
`<RootLayout>` is a layout container designed to be used as the primary RootLayout container for your app with a built-in API to easily control dynamic view layers. It extends a [GridLayout]() so has all the features of a grid but enhanced with additional APIs.
99

10-
You can use `getRootLayout()` to get a reference to the root layout in your app from anywhere.
10+
You can use `getRootLayout()` to get a reference to the RootLayout in your app from anywhere.
1111

1212
## Usage
1313

Diff for: content/ui/searchbar.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export class UsageComponent {
165165
<SearchBar hint="Enter search term here ..." />
166166
```
167167

168-
Gets or sets placeholder text for the input area.
168+
Gets or sets Placeholder text for the input area.
169169

170170
---
171171

@@ -195,7 +195,7 @@ Gets or sets the background color of the input area.
195195
<SearchBar textFieldHintColor="#fff"/>
196196
```
197197

198-
Gets or sets the color of the placeholder text.
198+
Gets or sets the color of the Placeholder text.
199199

200200
---
201201

Diff for: content/ui/segmentedbar.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ const segmentedBar = new SegmentedBar()
234234
segmentedBar.items = [segmentedBarItem1, segmentedBarItem2]
235235
```
236236

237-
An array of items to be displayed in the segmented bar. Represents the button labels or icons of the segmented bar.
237+
An array of items to be displayed in the SegmentedBar. Represents the button labels or icons of the SegmentedBar.
238238

239239
---
240240

@@ -283,7 +283,7 @@ onSelectedIndexChange(args: SelectedIndexChangedEventData) {
283283
}
284284
```
285285

286-
Emitted when the an item on the segmented bar is tapped. See the [SelectedIndexChangedEventData interface](#selectedindexchangedeventdata-interface) for the event data.
286+
Emitted when the an item on the SegmentedBar is tapped. See the [SelectedIndexChangedEventData interface](#selectedindexchangedeventdata-interface) for the event data.
287287

288288
---
289289

Diff for: content/ui/stack-layout.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ title: StackLayout
77
When you add child views to a StackLayout, they will be arranged one after the other in the specified direction, either horizontally or vertically. By default, the orientation of a StackLayout is vertical, but you can change it to `horizontal` by setting the `orientation` property.
88

99
::: danger Important
10-
StackLayout is a relatively simple layout container, and it's easy to overuse it in complex layouts. When you have many nested StackLayout containers or lots of child views, it can lead to poor performance and slow rendering times. Therefore If you find yourself nesting a lot of `<StackLayout>` you will likely get better performance by switching to a `<GridLayout>` or `<FlexboxLayout>`.
10+
11+
StackLayout is a basic layout container often used excessively in complex layouts. Overusing it with many nested containers or numerous child views can result in poor performance and slow rendering. If you're extensively nesting `<StackLayout>`, consider switching to `<GridLayout>` or `<FlexboxLayout>` for better performance.
1112

1213
<!-- See [Layout Nesting](/common-pitfalls.html#layout-nesting) for more information. -->
1314

Diff for: content/ui/textfield.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Gets or sets the `text` value of the component.
185185
hint: string = textField.hint
186186
```
187187

188-
Gets or sets the placeholder text for the component.
188+
Gets or sets the Placeholder text for the component.
189189

190190
---
191191

Diff for: content/ui/textview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Gets or sets the `text` value of the component.
228228
hint: string = textView.hint
229229
```
230230

231-
Gets or sets the placeholder text for the component.
231+
Gets or sets the Placeholder text for the component.
232232

233233
---
234234

Diff for: content/ui/webview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Disable scrolling in the WebView.
144144
webView.iosAllowInlineMediaPlayback = true
145145
```
146146

147-
(`iOS only`) Enables inline media playback on iOS. By default, webview forces iPhone into fullscreen media playback.
147+
(`iOS only`) Enables inline media playback on iOS. By default, WebView forces iPhone into fullscreen media playback.
148148

149149
---
150150

Diff for: content/ui/wrap-layout.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: WrapLayout
44

55
`<WrapLayout>` is a layout container that lets you position items in rows or columns, based on the `orientation` property. When the space is filled, the container automatically wraps items onto a new row or column.
66

7-
## Horizontal wrap layout
7+
## Horizontal WrapLayout
88

99
By default, a `WrapLayout` wraps its child items along a row.
1010
The following example creates a row of equally-sized items. When the row runs out of space, the container wraps the last item to a new row.
@@ -20,7 +20,7 @@ The following example creates a row of equally-sized items. When the row runs ou
2020

2121
<img class="md:w-1/2 lg:w-1/3" src="https://art.nativescript.org/layouts/wrap_layout_horizontal.svg" />
2222

23-
## Vertical wrap layout
23+
## Vertical WrapLayout
2424

2525
To wrap child items vertically, set the `WrapLayout`'s `orentation` property to `vertical`.
2626
The following example creates a column of equally-sized items. When the column runs out of space, the container wraps the last item to a new column.

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/docs/commit/a49c1d8b8883d76ee05d2d798b304c96a410375d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy