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.
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Oct 16, 2015 2:27 AM UTC

via the ${currentDesign} object.

7 replies

akashs51893872
Level 3
May 25, 2019 7:49 AM UTC

${currentStyle.propertyName}

where name of the property should replace the propertyName

Translate
Feike_Visser1
Feike_Visser1Accepted solution
Employee
Oct 16, 2015 2:27 AM UTC

via the ${currentDesign} object.

Translate
selvaganesh
Level 5
Oct 16, 2015 2:27 AM UTC

Do you how to get inside javascript

Translate
selvaganesh
Level 5
Oct 16, 2015 2:27 AM UTC

currentDesign didnt work; currentStyle worked. Thanks

Translate
Feike_Visser1
Employee
Oct 16, 2015 2:27 AM UTC

what do you mean?

Translate
selvaganesh
Level 5
Oct 16, 2015 2:27 AM UTC

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

Translate
Feike_Visser1
Employee
Oct 16, 2015 2:27 AM UTC

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

Translate