Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var dump = {
- "*": {
- "Magento_Ui/js/core/app": {
- "types": {
- "dataSource": {"component": "Magento_Ui\/js\/form\/provider"},
- "input": {"extends": "type_form"},
- "form.input": {"extends": "input"},
- "fieldset": {"component": "Magento_Ui\/js\/form\/components\/fieldset", "extends": "type_form"},
- "container": {"extends": "type_form"},
- "actionDelete": {"extends": "type_form"},
- "type_form": {
- "component": "Magento_Ui\/js\/form\/form",
- "provider": "type_form.type_form_data_source",
- "deps": "type_form.type_form_data_source",
- "namespace": "type_form"
- },
- "html_content": {"component": "Magento_Ui\/js\/form\/components\/html", "extends": "type_form"}
- },
- "components": {
- "type_form": {
- "children": {
- "type_form": {
- "type": "type_form",
- "name": "type_form",
- "children": {
- "general": {
- "type": "fieldset",
- "name": "general",
- "children": {
- "id": {
- "type": "form.input",
- "name": "id",
- "dataScope": "id",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "visible": false,
- "dataType": "text",
- "formElement": "input",
- "source": "type"
- }
- },
- "name": {
- "type": "form.input",
- "name": "name",
- "dataScope": "name",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "dataType": "text",
- "label": "Name",
- "formElement": "input",
- "scope": "type",
- "validation": {"required-entry": true}
- }
- }
- },
- "config": {
- "label": "General",
- "collapsible": true,
- "opened": true,
- "sortOrder": "10"
- }
- },
- "related": {
- "type": "fieldset",
- "name": "related",
- "children": {
- "related": {
- "type": "fieldset",
- "name": "related",
- "children": {
- "button_set": {
- "type": "container",
- "name": "button_set",
- "children": {
- "button_related": {
- "type": "container",
- "name": "button_related",
- "config": {
- "component": "Magento_Ui\/js\/form\/components\/button",
- "formElement": "container",
- "componentType": "container",
- "actions": [{
- "targetName": "type_form.type_form.related.related.modal",
- "actionName": "toggleModal"
- }, {
- "targetName": "type_form.type_form.related.related.modal.related_product_listing",
- "actionName": "render"
- }],
- "title": "Add Related Products",
- "provider": null
- }
- }
- },
- "config": {
- "component": "uiComponent",
- "formElement": "container",
- "componentType": "container",
- "label": false,
- "content": "Related products are shown to customers in addition to the item the customer is looking at.",
- "template": "ui\/form\/components\/complex"
- }
- },
- "modal": {
- "type": "container",
- "name": "modal",
- "children": {
- "related_product_listing": {
- "type": "container",
- "name": "related_product_listing",
- "dataScope": "related_product_listing",
- "config": {
- "component": "Magento_Ui\/js\/form\/components\/insert-listing",
- "update_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
- "render_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
- "autoRender": false,
- "dataLinks": {"imports": false, "exports": true},
- "realTimeLink": true,
- "componentType": "insertListing",
- "externalProvider": "related_product_listing.related_product_listing_data_source",
- "selectionsProvider": "related_product_listing.related_product_listing.product_columns.ids",
- "ns": "related_product_listing",
- "behaviourType": "simple",
- "externalFilterMode": true,
- "imports": {
- "productId": "${ $.provider }:data.product.current_product_id",
- "storeId": "${ $.provider }:data.product.current_store_id"
- },
- "exports": {
- "productId": "${ $.externalProvider }:params.current_product_id",
- "storeId": "${ $.externalProvider }:params.current_store_id"
- },
- "storageConfig": {"provider": "type_form.type_form_data_source"}
- }
- }
- },
- "dataScope": "",
- "config": {
- "component": "Magento_Ui\/js\/modal\/modal-component",
- "options": {
- "type": "slide",
- "title": "Add Related Products",
- "buttons": [{
- "text": "Cancel",
- "actions": ["closeModal"]
- }, {
- "text": "Add Selected Products",
- "class": "action-primary",
- "actions": [{
- "targetName": "index = related_product_listing",
- "actionName": "save"
- }, "closeModal"]
- }]
- },
- "componentType": "modal"
- }
- },
- "related": {
- "type": "container",
- "name": "related",
- "children": {
- "record": {
- "type": "container",
- "name": "record",
- "children": {
- "id": {
- "type": "form.input",
- "name": "id",
- "dataScope": "id",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "ID",
- "sortOrder": 0
- }
- },
- "thumbnail": {
- "type": "form.input",
- "name": "thumbnail",
- "dataScope": "thumbnail",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/thumbnail",
- "dataType": "text",
- "fit": true,
- "label": "Thumbnail",
- "sortOrder": 10
- }
- },
- "name": {
- "type": "form.input",
- "name": "name",
- "dataScope": "name",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "Name",
- "sortOrder": 20
- }
- },
- "status": {
- "type": "form.input",
- "name": "status",
- "dataScope": "status",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "Status",
- "sortOrder": 30
- }
- },
- "attribute_set": {
- "type": "form.input",
- "name": "attribute_set",
- "dataScope": "attribute_set",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "Attribute Set",
- "sortOrder": 40
- }
- },
- "sku": {
- "type": "form.input",
- "name": "sku",
- "dataScope": "sku",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "SKU",
- "sortOrder": 50
- }
- },
- "price": {
- "type": "form.input",
- "name": "price",
- "dataScope": "price",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "Price",
- "sortOrder": 60
- }
- },
- "actionDelete": {
- "type": "actionDelete",
- "name": "actionDelete",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "elementTmpl": "ui\/dynamic-rows\/cells\/action-delete",
- "template": "ui\/dynamic-rows\/cells\/action-delete",
- "additionalClasses": "data-grid-actions-cell",
- "componentType": "actionDelete",
- "dataType": "text",
- "label": "Actions",
- "sortOrder": 70,
- "fit": true
- }
- },
- "position": {
- "type": "form.input",
- "name": "position",
- "dataScope": "position",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "dataType": "number",
- "formElement": "input",
- "componentType": "field",
- "sortOrder": 80,
- "visible": false
- }
- }
- },
- "dataScope": "",
- "config": {
- "component": "Magento_Ui\/js\/dynamic-rows\/record",
- "componentType": "container",
- "isTemplate": true,
- "is_collection": true
- }
- }
- },
- "dataScope": "data.links",
- "config": {
- "component": "Magento_Ui\/js\/dynamic-rows\/dynamic-rows-grid",
- "template": "ui\/dynamic-rows\/templates\/grid",
- "additionalClasses": "admin__field-wide",
- "componentType": "dynamicRows",
- "label": null,
- "columnsHeader": false,
- "columnsHeaderAfterRender": true,
- "renderDefaultRecord": false,
- "addButton": false,
- "recordTemplate": "record",
- "deleteButtonLabel": "Remove",
- "dataProvider": "related_product_listing",
- "map": {
- "id": "entity_id",
- "name": "name",
- "status": "status_text",
- "attribute_set": "attribute_set_text",
- "sku": "sku",
- "price": "price",
- "thumbnail": "thumbnail_src"
- },
- "links": {"insertData": "${ $.provider }:${ $.dataProvider }"},
- "sortOrder": 2
- }
- }
- },
- "dataScope": "",
- "config": {
- "additionalClasses": "admin__fieldset-section",
- "label": "Related Products",
- "collapsible": false,
- "componentType": "fieldset",
- "sortOrder": 10
- }
- },
- "upsell": {
- "type": "fieldset",
- "name": "upsell",
- "children": {
- "button_set": {
- "type": "container",
- "name": "button_set",
- "children": {
- "button_upsell": {
- "type": "container",
- "name": "button_upsell",
- "config": {
- "component": "Magento_Ui\/js\/form\/components\/button",
- "formElement": "container",
- "componentType": "container",
- "actions": [{
- "targetName": "type_form.type_form.related.upsell.modal",
- "actionName": "toggleModal"
- }, {
- "targetName": "type_form.type_form.related.upsell.modal.upsell_product_listing",
- "actionName": "render"
- }],
- "title": "Add Up-Sell Products",
- "provider": null
- }
- }
- },
- "config": {
- "component": "uiComponent",
- "formElement": "container",
- "componentType": "container",
- "label": false,
- "content": "An up-sell item is offered to the customer as a pricier or higher-quality alternative to the product the customer is looking at.",
- "template": "ui\/form\/components\/complex"
- }
- },
- "modal": {
- "type": "container",
- "name": "modal",
- "children": {
- "upsell_product_listing": {
- "type": "container",
- "name": "upsell_product_listing",
- "dataScope": "upsell_product_listing",
- "config": {
- "component": "Magento_Ui\/js\/form\/components\/insert-listing",
- "update_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
- "render_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
- "autoRender": false,
- "dataLinks": {"imports": false, "exports": true},
- "realTimeLink": true,
- "componentType": "insertListing",
- "externalProvider": "upsell_product_listing.upsell_product_listing_data_source",
- "selectionsProvider": "upsell_product_listing.upsell_product_listing.product_columns.ids",
- "ns": "upsell_product_listing",
- "behaviourType": "simple",
- "externalFilterMode": true,
- "imports": {
- "productId": "${ $.provider }:data.product.current_product_id",
- "storeId": "${ $.provider }:data.product.current_store_id"
- },
- "exports": {
- "productId": "${ $.externalProvider }:params.current_product_id",
- "storeId": "${ $.externalProvider }:params.current_store_id"
- },
- "storageConfig": {"provider": "type_form.type_form_data_source"}
- }
- }
- },
- "dataScope": "",
- "config": {
- "component": "Magento_Ui\/js\/modal\/modal-component",
- "options": {
- "type": "slide",
- "title": "Add Up-Sell Products",
- "buttons": [{
- "text": "Cancel",
- "actions": ["closeModal"]
- }, {
- "text": "Add Selected Products",
- "class": "action-primary",
- "actions": [{
- "targetName": "index = upsell_product_listing",
- "actionName": "save"
- }, "closeModal"]
- }]
- },
- "componentType": "modal"
- }
- },
- "upsell": {
- "type": "container",
- "name": "upsell",
- "children": {
- "record": {
- "type": "container",
- "name": "record",
- "children": {
- "id": {
- "type": "form.input",
- "name": "id",
- "dataScope": "id",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "ID",
- "sortOrder": 0
- }
- },
- "thumbnail": {
- "type": "form.input",
- "name": "thumbnail",
- "dataScope": "thumbnail",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/thumbnail",
- "dataType": "text",
- "fit": true,
- "label": "Thumbnail",
- "sortOrder": 10
- }
- },
- "name": {
- "type": "form.input",
- "name": "name",
- "dataScope": "name",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "Name",
- "sortOrder": 20
- }
- },
- "status": {
- "type": "form.input",
- "name": "status",
- "dataScope": "status",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "Status",
- "sortOrder": 30
- }
- },
- "attribute_set": {
- "type": "form.input",
- "name": "attribute_set",
- "dataScope": "attribute_set",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "Attribute Set",
- "sortOrder": 40
- }
- },
- "sku": {
- "type": "form.input",
- "name": "sku",
- "dataScope": "sku",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "SKU",
- "sortOrder": 50
- }
- },
- "price": {
- "type": "form.input",
- "name": "price",
- "dataScope": "price",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "Price",
- "sortOrder": 60
- }
- },
- "actionDelete": {
- "type": "actionDelete",
- "name": "actionDelete",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "elementTmpl": "ui\/dynamic-rows\/cells\/action-delete",
- "template": "ui\/dynamic-rows\/cells\/action-delete",
- "additionalClasses": "data-grid-actions-cell",
- "componentType": "actionDelete",
- "dataType": "text",
- "label": "Actions",
- "sortOrder": 70,
- "fit": true
- }
- },
- "position": {
- "type": "form.input",
- "name": "position",
- "dataScope": "position",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "dataType": "number",
- "formElement": "input",
- "componentType": "field",
- "sortOrder": 80,
- "visible": false
- }
- }
- },
- "dataScope": "",
- "config": {
- "component": "Magento_Ui\/js\/dynamic-rows\/record",
- "componentType": "container",
- "isTemplate": true,
- "is_collection": true
- }
- }
- },
- "dataScope": "data.links",
- "config": {
- "component": "Magento_Ui\/js\/dynamic-rows\/dynamic-rows-grid",
- "template": "ui\/dynamic-rows\/templates\/grid",
- "additionalClasses": "admin__field-wide",
- "componentType": "dynamicRows",
- "label": null,
- "columnsHeader": false,
- "columnsHeaderAfterRender": true,
- "renderDefaultRecord": false,
- "addButton": false,
- "recordTemplate": "record",
- "deleteButtonLabel": "Remove",
- "dataProvider": "upsell_product_listing",
- "map": {
- "id": "entity_id",
- "name": "name",
- "status": "status_text",
- "attribute_set": "attribute_set_text",
- "sku": "sku",
- "price": "price",
- "thumbnail": "thumbnail_src"
- },
- "links": {"insertData": "${ $.provider }:${ $.dataProvider }"},
- "sortOrder": 2
- }
- }
- },
- "dataScope": "",
- "config": {
- "additionalClasses": "admin__fieldset-section",
- "label": "Up-Sell Products",
- "collapsible": false,
- "componentType": "fieldset",
- "sortOrder": 20
- }
- },
- "crosssell": {
- "type": "fieldset",
- "name": "crosssell",
- "children": {
- "button_set": {
- "type": "container",
- "name": "button_set",
- "children": {
- "button_crosssell": {
- "type": "container",
- "name": "button_crosssell",
- "config": {
- "component": "Magento_Ui\/js\/form\/components\/button",
- "formElement": "container",
- "componentType": "container",
- "actions": [{
- "targetName": "type_form.type_form.related.crosssell.modal",
- "actionName": "toggleModal"
- }, {
- "targetName": "type_form.type_form.related.crosssell.modal.crosssell_product_listing",
- "actionName": "render"
- }],
- "title": "Add Cross-Sell Products",
- "provider": null
- }
- }
- },
- "config": {
- "component": "uiComponent",
- "formElement": "container",
- "componentType": "container",
- "label": false,
- "content": "These \"impulse-buy\" products appear next to the shopping cart as cross-sells to the items already in the shopping cart.",
- "template": "ui\/form\/components\/complex"
- }
- },
- "modal": {
- "type": "container",
- "name": "modal",
- "children": {
- "crosssell_product_listing": {
- "type": "container",
- "name": "crosssell_product_listing",
- "dataScope": "crosssell_product_listing",
- "config": {
- "component": "Magento_Ui\/js\/form\/components\/insert-listing",
- "update_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
- "render_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
- "autoRender": false,
- "dataLinks": {"imports": false, "exports": true},
- "realTimeLink": true,
- "componentType": "insertListing",
- "externalProvider": "crosssell_product_listing.crosssell_product_listing_data_source",
- "selectionsProvider": "crosssell_product_listing.crosssell_product_listing.product_columns.ids",
- "ns": "crosssell_product_listing",
- "behaviourType": "simple",
- "externalFilterMode": true,
- "imports": {
- "productId": "${ $.provider }:data.product.current_product_id",
- "storeId": "${ $.provider }:data.product.current_store_id"
- },
- "exports": {
- "productId": "${ $.externalProvider }:params.current_product_id",
- "storeId": "${ $.externalProvider }:params.current_store_id"
- },
- "storageConfig": {"provider": "type_form.type_form_data_source"}
- }
- }
- },
- "dataScope": "",
- "config": {
- "component": "Magento_Ui\/js\/modal\/modal-component",
- "options": {
- "type": "slide",
- "title": "Add Cross-Sell Products",
- "buttons": [{
- "text": "Cancel",
- "actions": ["closeModal"]
- }, {
- "text": "Add Selected Products",
- "class": "action-primary",
- "actions": [{
- "targetName": "index = crosssell_product_listing",
- "actionName": "save"
- }, "closeModal"]
- }]
- },
- "componentType": "modal"
- }
- },
- "crosssell": {
- "type": "container",
- "name": "crosssell",
- "children": {
- "record": {
- "type": "container",
- "name": "record",
- "children": {
- "id": {
- "type": "form.input",
- "name": "id",
- "dataScope": "id",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "ID",
- "sortOrder": 0
- }
- },
- "thumbnail": {
- "type": "form.input",
- "name": "thumbnail",
- "dataScope": "thumbnail",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/thumbnail",
- "dataType": "text",
- "fit": true,
- "label": "Thumbnail",
- "sortOrder": 10
- }
- },
- "name": {
- "type": "form.input",
- "name": "name",
- "dataScope": "name",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "Name",
- "sortOrder": 20
- }
- },
- "status": {
- "type": "form.input",
- "name": "status",
- "dataScope": "status",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "Status",
- "sortOrder": 30
- }
- },
- "attribute_set": {
- "type": "form.input",
- "name": "attribute_set",
- "dataScope": "attribute_set",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": false,
- "label": "Attribute Set",
- "sortOrder": 40
- }
- },
- "sku": {
- "type": "form.input",
- "name": "sku",
- "dataScope": "sku",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "SKU",
- "sortOrder": 50
- }
- },
- "price": {
- "type": "form.input",
- "name": "price",
- "dataScope": "price",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/text",
- "template": "ui\/form\/field",
- "componentType": "field",
- "formElement": "input",
- "elementTmpl": "ui\/dynamic-rows\/cells\/text",
- "dataType": "text",
- "fit": true,
- "label": "Price",
- "sortOrder": 60
- }
- },
- "actionDelete": {
- "type": "actionDelete",
- "name": "actionDelete",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "elementTmpl": "ui\/dynamic-rows\/cells\/action-delete",
- "template": "ui\/dynamic-rows\/cells\/action-delete",
- "additionalClasses": "data-grid-actions-cell",
- "componentType": "actionDelete",
- "dataType": "text",
- "label": "Actions",
- "sortOrder": 70,
- "fit": true
- }
- },
- "position": {
- "type": "form.input",
- "name": "position",
- "dataScope": "position",
- "config": {
- "component": "Magento_Ui\/js\/form\/element\/abstract",
- "template": "ui\/form\/field",
- "dataType": "number",
- "formElement": "input",
- "componentType": "field",
- "sortOrder": 80,
- "visible": false
- }
- }
- },
- "dataScope": "",
- "config": {
- "component": "Magento_Ui\/js\/dynamic-rows\/record",
- "componentType": "container",
- "isTemplate": true,
- "is_collection": true
- }
- }
- },
- "dataScope": "data.links",
- "config": {
- "component": "Magento_Ui\/js\/dynamic-rows\/dynamic-rows-grid",
- "template": "ui\/dynamic-rows\/templates\/grid",
- "additionalClasses": "admin__field-wide",
- "componentType": "dynamicRows",
- "label": null,
- "columnsHeader": false,
- "columnsHeaderAfterRender": true,
- "renderDefaultRecord": false,
- "addButton": false,
- "recordTemplate": "record",
- "deleteButtonLabel": "Remove",
- "dataProvider": "crosssell_product_listing",
- "map": {
- "id": "entity_id",
- "name": "name",
- "status": "status_text",
- "attribute_set": "attribute_set_text",
- "sku": "sku",
- "price": "price",
- "thumbnail": "thumbnail_src"
- },
- "links": {"insertData": "${ $.provider }:${ $.dataProvider }"},
- "sortOrder": 2
- }
- }
- },
- "dataScope": "",
- "config": {
- "additionalClasses": "admin__fieldset-section",
- "label": "Cross-Sell Products",
- "collapsible": false,
- "componentType": "fieldset",
- "sortOrder": 30
- }
- }
- },
- "dataScope": "",
- "config": {
- "label": "Related Products, Up-Sells, and Cross-Sells",
- "collapsible": true,
- "componentType": "fieldset",
- "sortOrder": 90
- }
- }
- },
- "dataScope": "data",
- "config": {"namespace": "type_form"}
- },
- "type_form_data_source": {
- "type": "dataSource",
- "name": "type_form_data_source",
- "dataScope": "type_form",
- "config": {
- "data": {
- "id": "1",
- "name": "Name",
- "links": {"crosssell": [], "related": [], "upsell": []}
- },
- "submit_url": "http:\/\/mage2.local\/admin\/ibundlemanager\/type\/save\/key\/77249d1598c0dceb5ed5b39cf69604a72beade3280370992aea974ed865e0b7f\/",
- "params": {"namespace": "type_form"}
- }
- }
- }
- }
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement