Skip to content

Instantly share code, notes, and snippets.

@vkorotun
Last active November 12, 2016 08:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vkorotun/32029d312a5d5529620791e594e250fc to your computer and use it in GitHub Desktop.
Save vkorotun/32029d312a5d5529620791e594e250fc to your computer and use it in GitHub Desktop.
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