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
* Update grid-layout.md (translation)
I added a translation into Russian. I would be glad if this helps.
* A small addition to the translation
A small addition to the translation
`<GridLayout>`is a layout component that lets you arrange its child elements in a table-like manner.
7
+
`<GridLayout>`является компонентом макета, который позволяет упорядочить его дочерние элементы в табличном стиле.
8
8
9
-
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.
9
+
Сетка состоит из строк, столбцов и ячеек. Ячейка может занимать одну или несколько строк и один или несколько столбцов. Сетка может содержать несколько дочерних элементов, которые могут занимать несколько строк и столбцов и даже перекрывать друг друга.
10
10
11
-
By default, the `<GridLayout>`has one column and one row. You can add columns and rows by configuring the `columns`and the `rows` property. 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.
11
+
По умолчанию , `<GridLayout>`содержит имеет один столбец и одну строку. Вы можете добавить столбцы и строки, настроив свойства: `columns`и `rows`. В этих свойствах вам нужно установить количество столбцов и строк, а также их ширину и высоту. Вы устанавливаете количество столбцов, перечисляя их ширину через запятую. Вы устанавливаете количество строк, перечисляя их высоту через запятую.
12
12
13
-
You can set a fixed size for column width and row height or you can create them in a responsive manner.
13
+
Вы можете установить фиксированный размер для ширины столбца и высоты строки, или вы можете создать их в адаптивной манере.
14
14
15
-
***An absolute number:**Indicates a fixed size.
16
-
***auto:**Makes the column as wide as its widest child or makes the row as tall as its tallest child.
17
-
***\*:**Takes as much space as available after filling all auto and fixed size columns or rows.
***auto:**Делает столбец таким же широким, как его самый широкий дочерний элемент, или делает ряд таким же высоким, как и его самый высокий дочерний элемент.
17
+
***\*:**Занимает столько места, сколько доступно после заполнения всех столбцов или строк авто и фиксированного размера.
18
18
19
-
See[Props](#props)for more information.
19
+
Смотрите[Props](#props)чтобы получить больше информации.
20
20
21
-
### Examples
21
+
### Примеры
22
22
23
-
#### Grid layout with fixed sizing
23
+
#### Разметка сетки с фиксированным размером
24
24
25
-
The following example creates a simple 2-by-2 grid with fixed column widths and row heights.
25
+
В следующем примере создается простая сетка 2 на 2 с фиксированной шириной столбца и высотой строки.
26
26
27
27
```html
28
28
<GridLayoutcolumns="115, 115"rows="115, 115">
@@ -34,9 +34,9 @@ The following example creates a simple 2-by-2 grid with fixed column widths and
@@ -79,18 +79,18 @@ The following example creates a complex grid with responsive design, mixed width
79
79
80
80
## Props
81
81
82
-
|Name|Type|Description|
82
+
|Имя|Тип|Описание|
83
83
|------|------|-------------|
84
-
`columns` | `String` | A string value representing column widths delimited with commas.<br/>Valid values: an absolute number, `auto`, or`*`.<br/>A number indicates an absolute column width. `auto`makes the column as wide as its widest child. `*`makes the column occupy all available horizontal space. The space is proportionally divided over all star-sized columns. You can set values such as`3*`and`5*`to indicate a ratio of 3:5 in sizes.
85
-
`rows` | `String` | A string value representing row heights delimited with commas.<br/>Valid values: an absolute number, `auto`, or`*`.<br/>A number indicates an absolute row height. `auto`makes the row as tall as its tallest child. `*`makes the row occupy all available vertical space. The space is proportionally divided over all star-sized rows. You can set values such as`3*`and`5*`to indicate a ratio of 3:5 in sizes.
84
+
`columns` | `String` | Строковое значение, представляющее ширину столбца, разделенную запятыми.<br/>Допустимые значения: абсолютное число, `auto`, или`*`.<br/>Число указывает на абсолютную ширину столбца. `auto`делает столбец таким же широким, как и его самый широкий потомок. `*`заставляет колонку занимать все доступное горизонтальное пространство. Пространство пропорционально разделено на все столбцы звездного размера. Вы можете установить значения, такие как`3*`и`5*`чтобы указать соотношение размеров 3:5.
85
+
`rows` | `String` | Строковое значение, представляющее высоту строки, разделенную запятыми.<br/>Допустимые значения: абсолютное число, `auto`, или`*`.<br/>Число указывает на абсолютную высоту строки. `auto`делает ряд таким же высоким, как и его самый высокий ребенок. `*`заставляет ряд занимать все доступное вертикальное пространство. Пространство пропорционально разделено на все звездные ряды. Вы можете установить значения, такие как`3*`и`5*`чтобы указать соотношение размеров 3:5.
86
86
87
-
## Additional children props
87
+
## Дополнительные детские props
88
88
89
-
When an element is a direct child of the GridLayout, you can work with the following additional properties.
89
+
Когда элемент является прямым потомком GridLayout, вы можете работать со следующими дополнительными свойствами.
90
90
91
-
|Name|Type|Description|
91
+
|Имя|Тип|Описание|
92
92
|------|------|-------------|
93
-
`row` | `Number` | Specifies the row for this element. Combined with a `col`property, specifies the cell coordinates of the element.<br/>The first row is indicated by`0`.
94
-
`col` | `Number` | Specifies the column for the element. Combined with a `row`property, specifies the cell coordinates of the element.<br/>The first column is indicated by`0`.
95
-
`rowSpan` | `Number` | Specifies the number of rows which this element spans across.
96
-
`colSpan` | `Number` | Specifies the number of columns which this element spans across.
93
+
`row` | `Number` | Определяет строку для этого элемента. В сочетании со свойством `col`указывает координаты ячейки элемента.<br/>Первый ряд обозначен как`0`.
94
+
`col` | `Number` | Определяет столбец для элемента. В сочетании со свойством `row`указывает координаты ячейки элемента.<br/>Первый столбец обозначен как`0`.
95
+
`rowSpan` | `Number` | Определяет количество строк, через которые проходит этот элемент.
96
+
`colSpan` | `Number` | Определяет количество столбцов, через которые проходит этот элемент.
0 commit comments