locked
How to put a default image on a gridLayout Item RRS feed

  • Question

  • Hi,

    I am curious about how to put a default image to a GridLayout item by using the templates. Can anyone provide any suggestions?

    <div class="gridLayoutItemTemplate" data-win-control="WinJS.Binding.Template" data-win-options="{tap: 'none'}"> <div class="photoTemplate"> <img class="photoTemplateImage" src="#" alt="" data-win-bind="src: imageUrl WinJS.Binding.oneTime; alt: title" />

    </div>

    </div>

      

    Thanks,



    Louis

    Tuesday, February 21, 2012 8:11 AM

Answers

  • Hi Louis,

    Set the src= parameter to an image.  That will display that image until your binding overrides it.

    Jeff


    Jeff Sanders (MSFT)

    Tuesday, February 21, 2012 1:43 PM
    Moderator