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

akashs51893872
New Participant
May 25, 2019

${currentStyle.propertyName}

where name of the property should replace the propertyName

Feike_Visser1
Feike_Visser1Accepted solution
Employee
October 16, 2015

via the ${currentDesign} object.

selvaganesh
New Participant
October 16, 2015

Do you how to get inside javascript

selvaganesh
New Participant
October 16, 2015

currentDesign didnt work; currentStyle worked. Thanks

Feike_Visser1
Employee
October 16, 2015

what do you mean?

selvaganesh
New Participant
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
Employee
October 16, 2015

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