How to use Events in Knockout JS Magento 2? – Magento 2 events

Here are the steps that you will follow in this How to use Events in Knockout JS Magento 2? – Magento 2 events: Add Magento 2 events observer into view file Declare the function select Row in view-model In the previous article, I’ve showed you how to generate a data grid in frontend page using knockout […]

Read More

How to Generate a Data Grid in Frontend Page by Using Knockout Js?

Magento 2 uses KnockoutJS library in frontend. It implements Model View View-Model design pattern which is very useful to build a dynamic UI. In this topic, I’ll guide you how to generate a data grid in frontend of Magento 2 by using KnockoutJS. 1 Create grid view-model 2 Implement _prepareItems() function in grid view-model 3 […]

Read More