Read Desing Dialog data from sling model

Accepted Solutions (1)

Accepted Solutions (1)

albini65002106

26-11-2019

Get the reference to the currentStyle

@ScriptVariable 

private Style currentStyle;

Get the properties from currentStyle

String prop1= currentStyle.get("prop1", String.class);