Last active
November 12, 2016 08:45
-
-
Save vkorotun/32029d312a5d5529620791e594e250fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helo everyone! | |
If youwish to have sample data installed for your local Magento 2 instance, please run the next command in CLI (magento root directory): | |
php bin/magento setup:performance:generate-fixtures ./setup/performance-toolkit/profiles/ce/small.xml | |
and don't forget to reindex afterwards: | |
php bin/magento indexer:reindex | |
Example 0: Change columns position in Customer Grid | |
require(['uiRegistry'], function (reg) { | |
var c = reg.get('index=customer_columns'); | |
c.insertChild(c.getChild('name'), c.getChild('gender')); | |
}); | |
Example 1: Apply filter to Customer Grid | |
require(['uiRegistry'], function (reg) { | |
var c = reg.get('index=listing_filters'); | |
c.setData({"email":"user_1@example.com"}).apply(); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment