forked from mbk-lab/rui_orig
2
0
Fork 0

Updated readme

This commit is contained in:
anoshenko 2022-12-20 17:48:00 +03:00
parent 60783f2f22
commit c5485c27c2
3 changed files with 26 additions and 4 deletions

View File

@ -2301,6 +2301,17 @@ ListLayout является контейнером, реализующим ин
Свойства "list-row-gap" и "list-column-gap" (константы ListRowGap и ListColumnGap) типа SizeUnit позволяют
установить соответственно расстояния между строками и столбцами контейнера. Значение по умолчанию 0.
### "order"
Свойство "order" (константа Order) типа int используется View, помещенными в контейнер ListLayout или GridLayout (см. ниже),
для изменения своего положения в контейнере.
Свойство "order" определяет порядок, используемый для размещения View в контейнере. Элементы располагаются в восходящем порядке по значению order.
Элементы с одинаковым значением order располагаются в том порядке, в каком они добавлялись в контейнер.
Значение по умолчанию равно 0. Поэтому для помещения View в начало надо использовать отрицательные значения свойства "order".
Внимание: свойство "order" воздействует только на визуальный порядок элементов, но не логический порядок или табуляцию.
## GridLayout
GridLayout является контейнером, реализующим интерфейс ViewsContainer. Для его создания используется функция

View File

@ -2279,6 +2279,17 @@ alignment of items in the list. Valid values:
The "list-row-gap" and "list-column-gap" SizeUnit properties (ListRowGap and ListColumnGap constants)
allow you to set the distance between the rows and columns of the container, respectively. The default is 0px.
### "order"
The "order" property (Order constant) of type int is used by Views placed in a ListLayout or GridLayout container (see below),
to change its position in the container.
The "order" property defines the order used to place the View in the container. The elements are arranged in ascending order by their order value.
Elements with the same order value are placed in the order in which they were added to the container.
The default value is 0. Therefore, negative values of the "order" property must be used to place the View at the beginning.
Note: The "order" property only affects the visual order of the elements, not the logical order or tabs.
## GridLayout
GridLayout is a container that implements the ViewsContainer interface. To create it, use the function

View File

@ -831,7 +831,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
var view tableCellView
view.init(session)
ignorCells := []struct{ row, column int }{}
ignoreCells := []struct{ row, column int }{}
selectionMode := GetTableSelectionMode(table)
var allowCellSelection TableAllowCellSelection = nil
@ -908,7 +908,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
for column := 0; column < columnCount; column++ {
ignore := false
for _, cell := range ignorCells {
for _, cell := range ignoreCells {
if cell.row == row && cell.column == column {
ignore = true
break
@ -994,7 +994,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
buffer.WriteString(strconv.Itoa(columnSpan))
buffer.WriteRune('"')
for c := column + 1; c < column+columnSpan; c++ {
ignorCells = append(ignorCells, struct {
ignoreCells = append(ignoreCells, struct {
row int
column int
}{row: row, column: c})
@ -1010,7 +1010,7 @@ func (table *tableViewData) htmlSubviews(self View, buffer *strings.Builder) {
}
for r := row + 1; r < row+rowSpan; r++ {
for c := column; c < column+columnSpan; c++ {
ignorCells = append(ignorCells, struct {
ignoreCells = append(ignoreCells, struct {
row int
column int
}{row: r, column: c})