InheritedProperty using HTL JavaScript Use API | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Mohit_KBansal
Mohit_KBansalAccepted solution
Employee
Sep 26, 2022 6:57 AM UTC

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});

1 reply

Mohit_KBansal
Mohit_KBansalAuthorAccepted solution
Employee
Sep 26, 2022 6:57 AM UTC

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});
Translate