ExamGecko
Question list
Search
Search

Question 38 - AD0-E717 discussion

Report
Export

A developer needs to initialize the jQuery Ul widget for a specific HTML tag. Which HTML attribute is used for this?

A.
x-magento-init
Answers
A.
x-magento-init
B.
data-mage-init
Answers
B.
data-mage-init
C.
data-ui
Answers
C.
data-ui
Suggested answer: B

Explanation:

The data-mage-init HTML attribute is used to initialize the jQuery UI widget for a specific HTML tag. This attribute specifies the name of the widget and its configuration options as a JSON object.

The x-magento-init HTML attribute is used to initialize RequireJS modules for a specific HTML tag. The data-ui HTML attribute does not exist in Adobe Commerce.

Verified

Reference: [Adobe Commerce Developer Guide - Initialize JavaScript components using the data-mage-init attribute]

asked 02/10/2024
Robinson Santos
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first