You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs_src/content/docs/30-layouts.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -53,9 +53,9 @@ When an element is a direct child of `<absoluteLayout>`, you can work with the f
53
53
54
54
### DockLayout
55
55
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.
57
57
58
-
`<DockLayout>` has the following behavior:
58
+
`<dockLayout>` has the following behavior:
59
59
60
60
* 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`.
61
61
* Enforces layout constraints to its children.
@@ -128,15 +128,15 @@ The following example creates a single line of 4 elements that stretch across th
128
128
129
129
#### Additional children props
130
130
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.
132
132
133
133
| Name | Type | Description |
134
134
|------|------|-------------|
135
135
| `dock` | `String` | Specifies which side to dock the element to.<br/>Valid values: `top`, `right`, `bottom`, or `left`.
136
136
137
137
### FlexboxLayout
138
138
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.
140
140
141
141
#### Examples
142
142
@@ -239,7 +239,7 @@ The following example shows how to use:
239
239
240
240
#### Additional children props
241
241
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.
243
243
244
244
| Name | Type | Description |
245
245
|------|------|-------------|
@@ -251,11 +251,11 @@ When an element is a direct child of `<FlexboxLayout>`, you can work with the fo
251
251
252
252
### GridLayout
253
253
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.
255
255
256
256
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.
257
257
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.
259
259
260
260
You can set a fixed size for column width and row height or you can create them in a responsive manner:
261
261
@@ -337,7 +337,7 @@ The following example creates a complex grid with responsive design, mixed width
337
337
338
338
#### Additional children props
339
339
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.
341
341
342
342
| Name | Type | Description |
343
343
|------|------|-------------|
@@ -426,7 +426,7 @@ The following example creates a diagonal stack of items with responsive sizes. I
426
426
427
427
### WrapLayout
428
428
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.
@@ -130,7 +130,7 @@ The `<listView>` contains a `<Template>` which is a Svelte component used to ren
130
130
131
131
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).
132
132
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.
134
134
135
135
#### Progress So Far
136
136
@@ -158,7 +158,7 @@ Then replace our `onItemTap` function with this new one:
158
158
"Mark completed",
159
159
"Delete forever"
160
160
]);
161
-
161
+
162
162
console.log(result); // Logs the selected option for debugging.
0 commit comments