Вопрос

Отступы между кнопками в разделе

Добрый день, не понимаю как настроить отступы между кнопками, у меня они просто "слиплись", в AccountPageV2 имею следующий код:

 

{
				"operation": "insert",
				"name": "CreateActivityOnRelatedLawyer",
				"values": {
					"itemType": 5,
					"id": "createActivityOnRelatedLawyer",
					"style": "red",
					"caption": "$Resources.Strings.CreateActivityOnRelatedLawyerCaption",
					"click": "$callCheckAccountProcess"
				},
				"parentName": "LeftContainer",
				"propertyName": "items",
				"index": 10
			},
			{
				"operation": "insert",
				"name": "CreateActivityOnRelatedSpecialization",
				"values": {
					"itemType": 5,
					"id": "CreateActivityOnRelatedSpecialization",
					"style": "blue",
					"caption": "$Resources.Strings.CreateActivityOnRelatedSpecializationCaption",
					"click": "$callCheckAccountSpecializationProcess"
				},
				"parentName": "LeftContainer",
				"propertyName": "items",
				"index": 11
			},
			{
				"operation": "insert",
				"name": "CreateActivityOnRelatedTreasurer",
				"values": {
					"itemType": 5,
					"id": "CreateActivityOnRelatedTreasurer",
					"style": "green",
					"caption": "$Resources.Strings.CreateActivityOnRelatedTreasurerCaption",
					"click": "$callCheckBankAccountProcess"
				},
				"parentName": "LeftContainer",
				"propertyName": "items",
				"index": 12
			},

В системе выглядят кнопки как на скринеИзображение удалено.

Нравится

1 комментарий

Добрый день, Илья.

 

Попробуйте добавить для каждой кнопки атрибут "layout" в "values", в котором указать её размещение.

Ниже привожу пример:

			{
				"operation": "insert",
				"name": "QCApproved",
				"values": {
					"itemType": 5,
					"click": {"bindTo": "setQCApprovedStatus"},
					"enabled": {"bindTo": "getEnabledQCButtons"},
					"visible": true,
					"layout": {"colSpan": 3, "rowSpan": 1, "column": 6, "row": 1},
					"style": "green",
					"caption": {"bindTo": "Resources.Strings.QCApprovedButtonCaption"},
					"classes": {
						"textClass": ["actions-button-margin-right"],
						"wrapperClass": ["actions-button-margin-right"]
					}
				},
				"parentName": "Tabef7d06d0TabLabelGridLayout49844696",
				"propertyName": "items",
				"index": 5
			},
			{
				"operation": "insert",
				"name": "QCRejected",
				"values": {
					"itemType": 5,
					"click": {"bindTo": "setRejectedStatus"},
					"enabled": {"bindTo": "getEnabledQCButtons"},
					"visible": true,
					"layout": {"colSpan": 3, "rowSpan": 1, "column": 10, "row": 1},
					"style": "red",
					"caption": {"bindTo": "Resources.Strings.QCRejectedButtonCaption"},
					"classes": {
						"textClass": ["actions-button-margin-right"],
						"wrapperClass": ["actions-button-margin-right"]
					}
				},
				"parentName": "Tabef7d06d0TabLabelGridLayout49844696",
				"propertyName": "items",
				"index": 6
			},
			{
				"operation": "insert",
				"name": "QCReserved",
				"values": {
					"itemType": 5,
					"click": {"bindTo": "setReservedStatus"},
					"enabled": {"bindTo": "getEnabledQCButtons"},
					"visible": true,
					"layout": {"colSpan": 3, "rowSpan": 1, "column": 14, "row": 1},
					"style": "red",
					"caption": {"bindTo": "Resources.Strings.QCReservedButtonCaption"},
					"classes": {
						"textClass": ["actions-button-margin-right"],
						"wrapperClass": ["actions-button-margin-right"]
					}
				},
				"parentName": "Tabef7d06d0TabLabelGridLayout49844696",
				"propertyName": "items",
				"index": 7
			},

 

Показать все комментарии