Replies: 1 comment 5 replies
-
The "name" part should be the component's name used in the template. For example, if you have this HTML: <div data-mage-init='{"menu": {}}'></div> Then you have to use the "menu": <item name="menu" xsi:type="string">Vendor_Module/js/breeze/menu</item> Source: https://breezefront.com/docs/components p.s. You can also pass multiple "names". See the full featured example: https://breezefront.com/docs/components#component-registration |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have to implement Bss_ConfiguableGridView in breeze theme.
There is a requirejs-config.js added which has
map: { '*': { "custompricebox":'Bss_ConfiguableGridView/js/custompricebox', 'bss/swatch': 'Bss_ConfiguableGridView/js/swatch', 'bss/configurable': 'Bss_ConfiguableGridView/js/swatch/configurable' } },
Bss_ConfiguableGridView/js/swatch/configurable is not loading in the frontend.
So I added
<item name="Bss_ConfiguableGridView/js/swatch/configurable" xsi:type="string">Bss_ConfiguableGridView/js/breeze/swatch/configurable</item>
in breeze_default.xml and also added Bss_ConfiguableGridView/js/swatch/configurable in /Bss_ConfiguableGridView/web/js/breeze/swatch/configurable.jsThe configurable.js has a return function.
How can I get to load the file in the frontend and fire the methods?
Please help. Thank you
Beta Was this translation helpful? Give feedback.
All reactions