Skip to content

Commit 4d9a62b

Browse files
authored
Merge pull request halfnelson#79 from luizbills/fix-tags
Fix native tag names in docs
2 parents 3edaad4 + 28ac64a commit 4d9a62b

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

docs_src/content/docs/30-layouts.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ When an element is a direct child of `<absoluteLayout>`, you can work with the f
5353

5454
### DockLayout
5555

56-
`<DockLayout>` is a layout container that lets you dock child elements to the sides or the center of the layout.
56+
`<dockLayout>` is a layout container that lets you dock child elements to the sides or the center of the layout.
5757

58-
`<DockLayout>` has the following behavior:
58+
`<dockLayout>` has the following behavior:
5959

6060
* Uses the `dock` property to dock its children to the `left`, `right`, `top`, `bottom` or center of the layout.<br/>To dock a child element to the center, it must be the **last child** of the container and you must set the `stretchLastChild` property of the parent to `true`.
6161
* Enforces layout constraints to its children.
@@ -128,15 +128,15 @@ The following example creates a single line of 4 elements that stretch across th
128128

129129
#### Additional children props
130130

131-
When an element is a direct child of `<DockLayout>`, you can work with the following additional properties.
131+
When an element is a direct child of `<dockLayout>`, you can work with the following additional properties.
132132

133133
| Name | Type | Description |
134134
|------|------|-------------|
135135
| `dock` | `String` | Specifies which side to dock the element to.<br/>Valid values: `top`, `right`, `bottom`, or `left`.
136136

137137
### FlexboxLayout
138138

139-
`<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.
139+
`<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.
140140

141141
#### Examples
142142

@@ -239,7 +239,7 @@ The following example shows how to use:
239239

240240
#### Additional children props
241241

242-
When an element is a direct child of `<FlexboxLayout>`, you can work with the following additional properties.
242+
When an element is a direct child of `<flexboxLayout>`, you can work with the following additional properties.
243243

244244
| Name | Type | Description |
245245
|------|------|-------------|
@@ -251,11 +251,11 @@ When an element is a direct child of `<FlexboxLayout>`, you can work with the fo
251251

252252
### GridLayout
253253

254-
`<GridLayout>` is a layout container that lets you arrange its child elements in a table-like manner.
254+
`<gridLayout>` is a layout container that lets you arrange its child elements in a table-like manner.
255255

256256
The grid consists of rows, columns, and cells. A cell can span one or more rows and one or more columns. It can contain multiple child elements which can span over multiple rows and columns, and even overlap each other.
257257

258-
By default, `<GridLayout>` has one column and one row. You can add columns and rows by configuring the `columns` and the `rows` properties. In these properties, you need to set the number of columns and rows and their width and height. You set the number of columns by listing their widths, separated by a comma. You set the number of rows by listing their heights, separated by a comma.
258+
By default, `<gridLayout>` has one column and one row. You can add columns and rows by configuring the `columns` and the `rows` properties. In these properties, you need to set the number of columns and rows and their width and height. You set the number of columns by listing their widths, separated by a comma. You set the number of rows by listing their heights, separated by a comma.
259259

260260
You can set a fixed size for column width and row height or you can create them in a responsive manner:
261261

@@ -337,7 +337,7 @@ The following example creates a complex grid with responsive design, mixed width
337337

338338
#### Additional children props
339339

340-
When an element is a direct child of `<GridLayout>`, you can work with the following additional properties.
340+
When an element is a direct child of `<gridLayout>`, you can work with the following additional properties.
341341

342342
| Name | Type | Description |
343343
|------|------|-------------|
@@ -426,7 +426,7 @@ The following example creates a diagonal stack of items with responsive sizes. I
426426

427427
### WrapLayout
428428

429-
`<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.
429+
`<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.
430430

431431
#### Examples
432432

docs_src/content/docs/35-action-bars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Extends [`<actionItem>`](docs#actionitem).
128128

129129
| Name | Description |
130130
|------|-------------|
131-
| `tap`| Emitted when the `<NavigationButton>` is tapped.
131+
| `tap`| Emitted when the `<navigationButton>` is tapped.
132132

133133
#### Native component
134134

docs_src/content/docs/40-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ function indexChange(event) {
663663
}
664664
```
665665
666-
> **NOTE:** Currently, `<TabViewItem>` expects a single child element. In most cases, you might want to wrap your content in a _layout_.
666+
> **NOTE:** Currently, `<tabViewItem>` expects a single child element. In most cases, you might want to wrap your content in a _layout_.
667667
668668
#### Adding icons to tabs
669669

docs_src/content/tutorial/05-todo-app-example.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Remove the default `.btn` rule from `app.css` and set the contents of App.svelte
4444
<!--{ filename: 'App.svelte' }-->
4545
<page>
4646
<actionBar title="My Tasks" />
47-
47+
4848
<tabs tabsPosition="bottom">
4949
<tabStrip>
5050
<tabStripItem title="To Do" />
@@ -85,7 +85,7 @@ Replace the contents of the first `<tabContentItem>` with:
8585

8686
```html
8787
<gridLayout columns="*,120" rows="70,*">
88-
<!-- Configures the text field and ensures that pressing Return on the keyboard
88+
<!-- Configures the text field and ensures that pressing Return on the keyboard
8989
produces the same result as tapping the button. -->
9090
<textField col="0" row="0" bind:text="{textFieldValue}" hint="Type new task..." editable="true"
9191
on:returnPress="{onButtonTap}" />
@@ -103,7 +103,7 @@ and to the bottom of the file add a script tag:
103103
```html
104104
<script>
105105
import { Template } from 'svelte-native/components'
106-
106+
107107
let todos = []
108108
let textFieldValue = ""
109109
@@ -130,7 +130,7 @@ The `<listView>` contains a `<Template>` which is a Svelte component used to ren
130130

131131
When `onButtonTap` callback is fired, the code we added to the script element, will build a new `todos` array including the added item, and clear the text field. The `onItemTap` callback will just log which list item and index was tapped using `console.log` (which works fine in NativeScript).
132132

133-
> **NOTE** `<ListView>` will look for the first `<Template>` component in its children. The template component acts similar to a slot and will render its content for each item. This is exposed to the content as `item` via the `let:item` on the template element.
133+
> **NOTE** `<listView>` will look for the first `<Template>` component in its children. The template component acts similar to a slot and will render its content for each item. This is exposed to the content as `item` via the `let:item` on the template element.
134134
135135
#### Progress So Far
136136

@@ -158,7 +158,7 @@ Then replace our `onItemTap` function with this new one:
158158
"Mark completed",
159159
"Delete forever"
160160
]);
161-
161+
162162
console.log(result); // Logs the selected option for debugging.
163163
let item = todos[args.index]
164164
switch (result) {

0 commit comments

Comments
 (0)