How to customize and display a loader widget - Magento 2

Опубликовано: 11 Март 2026
на канале: Know the Mage
178
5

The loader is designed to block content initialization during an Ajax request, but it's versatile enough to be configured for non-Ajax tasks as well. We will explore the way we can initialize and customize this widget.

Chapters:
0:00 Introduction
0:05 Goal
0:27 Setup a template file
1:12 Initialize the script
1:39 Initialize the widget
1:56 Methods
2:30 Test the output
2:49 Add custom icon
3:49 Events
5:06 Initialize from div
6:48 Adding a callback function
8:07 Create custom template
10:07 Thank you