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

Assigning values to app/shell/page level variables in Javascript

edited Apr 24, 2019 4:47PM in Visual Builder 2 comments

Summary

Assigning values to app/shell/page level variables in Javascript

Content

Hi,

Could you please let us know how to assign the values to Application/Shell/Page level variables in Java script.

I have code snippet like below where i want to assign some value to application level variable inside that on click code snippet.

Below is Code:

define([], function() {
  'use strict';

  var PageModule = function PageModule(context) {

    $(document).on("click", "a>img", function(e) {
    // Want to assign here a value to app/shell/page level variable

    });
 
  };

  return PageModule;
});

With Regards,

Eswar.

Version

18.4.5

Code Snippet

define([], function() {
  'use strict';

  var PageModule = function PageModule(context) {

    $(document).on("click", "a>img", function(e) {
    // Want to assign here a value to app/shell/page level variable

    });
 
  };

  return PageModule;
});
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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