Skip to main content
GK-007
Level 9
Mar 11, 2016 8:44 PM UTC
Solved

Sightly Expression Is Giving Empty Value when passed to CSS method

Hi All,

I am seeing issue with sightly expression evolution that it's giving a empty value when it's part of CSS's method.

<div class="showcase-basic" style="background-image: url('${homePageBannerComponent.fileReference}')">

Where as if i retrieve the independently it's returning correct value.

Image:${homePageBannerComponent.fileReference}

What's causing the issue and preventing to get this value.

Thanks,

Kishore

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Mar 12, 2016 9:04 AM UTC

This should work

<div class="showcase-basic" style="background-image: url(${properties.text @ context='uri'})"> Image </div>

** Replace properties.text with homePageBannerComponent.fileReference

2 replies

edubey
edubeyAccepted solution
Level 10
Mar 12, 2016 9:04 AM UTC

This should work

<div class="showcase-basic" style="background-image: url(${properties.text @ context='uri'})"> Image </div>

** Replace properties.text with homePageBannerComponent.fileReference

Translate
GK-007
GK-007Author
Level 9
Mar 13, 2016 6:36 AM UTC

Working, thank you.

Translate