Expand my Community achievements bar.

SOLVED

InheritedProperty using HTL JavaScript Use API

Avatar

Employee Advisor

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

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Found the correct syntax below

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

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Found the correct syntax below

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