InheritedProperty using HTL JavaScript Use API | Community
Skip to main content
Mohit_KBansal
Employee
September 26, 2022
Solved

InheritedProperty using HTL JavaScript Use API

  • September 26, 2022
  • 1 reply
  • 595 views

Can anyone please point me to the correct syntax to get InheritedProperty using HTL JavaScript Use API?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mohit_KBansal

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
September 26, 2022

Found the correct syntax below

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