yireo-training / magento2-example-uicomponent-mixin

Example Magento 2 module creating a RequireJS mixin for the UiComponent class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example UiComponent mixin

Example Magento 2 module creating a RequireJS mixin for the UiComponent class

Installation

To install use the following composer command:

composer require yireo-training/magento2-example-uicomponent-mixin:dev-master

Next enable the module:

bin/magento module:enable Yireo_ExampleUiComponentMixin
bin/magento setup:upgrade

And flush the cache:

bin/magento cache:clean

Proof of concept

After installing the module, the console log should be flooded with logs containing template names.

About

Example Magento 2 module creating a RequireJS mixin for the UiComponent class


Languages

Language:JavaScript 75.5%Language:PHP 24.5%