QuestionQ24

VerifiedAdobe Experience Manager Sites

An Adobe Commerce developer needs to add a custom widget that extends the default Calendar Widget.

What should this file contain?

Explanation

The Calendar implementation is a jQuery widget provided by mage/calendar. A custom widget that extends it must use the jQuery UI Widget Factory to register a namespaced widget whose base is $.mage.calendar, then return that custom widget from the AMD module. This is the standard Adobe Commerce pattern for extending a default jQuery widget.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!