Design properties in sightly | 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.
Best answer by Feike_Visser1

via the ${currentDesign} object.

7 replies

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

via the ${currentDesign} object.

selvaganesh
Level 5
October 16, 2015

Do you how to get inside javascript

selvaganesh
Level 5
October 16, 2015

currentDesign didnt work; currentStyle worked. Thanks

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

what do you mean?

selvaganesh
Level 5
October 16, 2015

I am able to access design properties by using ${currentStyle.propertyName} in sightly html. I want to access it in sightly javascript. I tried currentStyle.propertyName , but it returned empty value. It works well in sightly html

Feike_Visser1
Adobe Employee
Adobe Employee
October 16, 2015

use currentStyle.get(propertyName,'default-name');

akashs51893872
Level 3
May 25, 2019

${currentStyle.propertyName}

where name of the property should replace the propertyName