Sightly Expression Is Giving Empty Value when passed to CSS method | Community
Skip to main content
GK-007
March 11, 2016
Solved

Sightly Expression Is Giving Empty Value when passed to CSS method

  • March 11, 2016
  • 2 replies
  • 711 views

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.
Best answer by edubey

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
March 12, 2016

This should work

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

** Replace properties.text with homePageBannerComponent.fileReference

GK-007
GK-007Author
March 13, 2016

Working, thank you.