Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to access parent page viewmodel from widget?

Summary:

The parent page has important attributes in it's root viewmodel. We need to access them from a widget.

Content (required):

The parent page has several values stored in it's $data viewmodel. How can we access them directly from a widget? There doesn't seem to be a widget.parent() or similar way to access the viewmodel via JS like one can using the display template.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!