A developer must initialize a jQuery UI widget on a particular HTML tag.
Which HTML attribute is used for this?
The data-mage-init attribute declaratively attaches and initializes a JavaScript component or jQuery UI widget on the specific HTML element that contains it. Adobe Commerce documents it as the approach for targeting a particular HTML element directly.
data-mage-init
Community Discussion